-
Notifications
You must be signed in to change notification settings - Fork 5
/
StringWork.h
47 lines (39 loc) · 1.29 KB
/
StringWork.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*----------------------------------------------------------
文字列処理クラスヘッダ
2002/11/20 (c)Keizi
----------------------------------------------------------*/
#if !defined(AFX_STRINGWORK_H__E26F2A4C_01CC_4E2E_8A31_1E4C6D507C1E__INCLUDED_)
#define AFX_STRINGWORK_H__E26F2A4C_01CC_4E2E_8A31_1E4C6D507C1E__INCLUDED_
#include <stdarg.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include <vector>
using namespace std;
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
struct KANSUUJI
{
char strKANJI[3];
int nNumber;
};
//---------------------------------------------------
// クラス宣言
//---------------------------------------------------
class UStringWork
{
public:
static int splitString(TCHAR *strSource,TCHAR split, ...);
static int splitStringSame(TCHAR *strSource,TCHAR split, ...);
static int trimFront(TCHAR *strSource);
static int trimBack(TCHAR *strSource);
static int trim(TCHAR *strSource);
static TCHAR* awk(TCHAR *strSource,TCHAR *strRet,int nSize,int nAwk,TCHAR cSplit = 0x20);
static bool isSJIS(TCHAR *szSource);
static int compressionSpace(TCHAR *szSource);
static int moveForward(TCHAR *szMovePos,int nMove);
};
#endif // !defined(AFX_STRINGWORK_H__E26F2A4C_01CC_4E2E_8A31_1E4C6D507C1E__INCLUDED_)