vb6functions.h

来自「VB6 has two very useful string functions」· C头文件 代码 · 共 29 行

H
29
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?