-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSqString.h
44 lines (35 loc) · 1.06 KB
/
SqString.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
/*
* =====================================================================================
*
* Filename: SqString.h
*
* Description:
*
* Version: 1.0
* Created: 11/30/2014 01:48:38 PM
* Revision: none
* Compiler: gcc
*
* Author: 张世龙 (mn), [email protected]
* Company: free
*
* =====================================================================================
*/
#ifndef GIT_JCOMMON_SQSTRING_H
#define GIT_JCOMMON_SQSTRING_H
#define MAXSIZE 200
typedef char String[MAXSIZE+1];//第0个位置存放串的长度
int StrAssign(String t,char *chars);
void StrCopy(String t,String s);
void ClearString(String t);
void StringEmpty(String t);
int StrLength(String t);
int StrCompare(String t,String s);
int Concat(String t,String s1,String s2);
int SubString(String sub,String t,int pos,int len);
int Index(String t,String sub,int pos);
void Replace(String t,String s,String v);
int StrInsert(String t,int pos,String s);
int StrDelete(String t,int pos,int len);
void printString(String str);
#endif