-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHELP_ZH.txt
More file actions
109 lines (77 loc) · 3.64 KB
/
HELP_ZH.txt
File metadata and controls
109 lines (77 loc) · 3.64 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
EditString是一个字符串库,可以对字符串进行替换,片段,清除等操作。
==============================使用方法=============================
将EditString文件夹中的源文件和头文件添加到你的项目中。
===================================================================
===============================函数================================
-------------------------------------------------------------------
ind_t charindex(char *dest,char c)
获取指定的字符在目标字符串中第一次出现的位置。
如果目标字符串中没有指定的字符,返回值为 -1。
dest : 目标字符串
c : 指定的字符
头文件 : "EditString.h"
-------------------------------------------------------------------
-------------------------------------------------------------------
ind_t charindex_last(char *dest,char c)
获取指定的字符在目标字符串中最后出现的位置。
如果目标字符串中没有指定的字符,返回值为 -1。
dest : 目标字符串
c : 指定的字符
头文件 : "EditString.h"
-------------------------------------------------------------------
-------------------------------------------------------------------
ind_t strindex(char *dest,char *str)
获取指定的字符串在目标字符串中第一次出现的位置。
如果目标字符串中没有指定的字符串,返回值为 -1。
dest : 目标字符串
str : 指定的字符串
头文件 : "EditString.h"
-------------------------------------------------------------------
-------------------------------------------------------------------
ind_t strindex_last(char *dest,char *str)
获取指定的字符串在目标字符串中最后出现的位置。
如果目标字符串中没有指定的字符串,返回值为 -1。
dest : 目标字符串
str : 指定的字符串
头文件 : "EditString.h"
-------------------------------------------------------------------
-------------------------------------------------------------------
void strclear(char *dest)
清除目标字符串中的所有字符。
dest : 目标字符串
头文件 : "EditString.h"
-------------------------------------------------------------------
-------------------------------------------------------------------
void strslice(char *dest,char *sour,ind_t slis,ind_t slie)
将源字符串中的片段复制到目标字符串。
dest : 目标字符串
sour : 源字符串
slis : 片段开始
slie : 片段结束
头文件 : "EditString.h"
-------------------------------------------------------------------
-------------------------------------------------------------------
void strreplace(char *dest,char *repstr,char *str)
替换目标字符串中指定的字符串。
dest : 目标字符串
repstr : 需要替换的字符串
str : 字符串
头文件 : "EditString.h"
-------------------------------------------------------------------
-------------------------------------------------------------------
void strinsert(char *dest,ind_t insi,char *sour)
将源字符串插入到目标字符串的指定位置。
dest : 目标字符串
insi : 位置索引
sour : 源字符串
头文件 : "EditString.h"
-------------------------------------------------------------------
-------------------------------------------------------------------
void strtrim(char *dest,ind_t trii,size_t tril)
裁剪目标字符串的指定位置。
dest : 目标字符串
trii : 位置索引
tril : 裁剪长度
头文件 : "EditString.h"
-------------------------------------------------------------------
===================================================================