⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vb6functions.h

📁 VB6 has two very useful string functions: Join and Split. This code implements Join and Split functi
💻 H
字号:
// VB6functions.h
// Philip Sakellaropoulos 2001
#if !defined(VB6STRING_H__INCLUDED_)
#define VB6STRING_H__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#ifndef _AFXDLL
#include "MFCstring.h"
using namespace NotMFC;
#endif

#include <vector>

namespace VB6
{

CString ReadUntil(CString &sIn,const CString &sDelim,bool &bFound);
CString Join(const std::vector<CString> &source,const CString sDelim = "=");
// split sIn using the delimeter sDelim. Put result array into vector
std::vector<CString> Split(CString sIn,const CString sDelim = ",",const long nLimit = -1);
// Replace sFind with sReplace
// nStart can be 0 - sIn.GetLength()-1 (char indexes start from 0 in VC, not 1 as in VB)
CString Replace(const CString sIn,const CString sFind, const CString sReplace,
								const long nStart = 0, const long nCount = -1);
} // namespace
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -