-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHELP_EN.txt
More file actions
110 lines (78 loc) · 3.61 KB
/
HELP_EN.txt
File metadata and controls
110 lines (78 loc) · 3.61 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
110
EditString is a string library,can conduct replace,slice,clear and other operate for string.
==========================How to use===========================
Will source file and header file in the EditString folder add to in the you project.
Add the header file "EditString.h" to in the you code.
===============================================================
============================Function===========================
---------------------------------------------------------------
ind_t charindex(char *dest,char c)
Get position of the first occurrence of the specified char in the dest string.
If no specified char in the dest string,return value is -1.
dest : dest string
c : specified char
Header file : "EditString.h"
---------------------------------------------------------------
---------------------------------------------------------------
ind_t charindex_last(char *dest,char c)
Get position of the last occurrence of the specified char in the dest string.
If no specified char in the dest string,return value is -1.
dest : dest string
c : specified char
Header file : "EditString.h"
---------------------------------------------------------------
---------------------------------------------------------------
ind_t strindex(char *dest,char *str)
Get position of the first occurrence of the specified string in the dest string.
If no specified string in the dest string,return value is -1.
dest : dest string
str : specified string
Header file : "EditString.h"
---------------------------------------------------------------
---------------------------------------------------------------
ind_t strindex_last(char *dest,char *str)
Get position of the last occurrence of the specified string in the dest string.
If no specified string in the dest string,return value is -1.
dest : dest string
fc : specified string
Header file : "EditString.h"
---------------------------------------------------------------
---------------------------------------------------------------
void strclear(char *dest)
Clear all char in the dest string.
dest : dest string
Header file : "EditString.h"
---------------------------------------------------------------
---------------------------------------------------------------
void strslice(char *dest,char *sour,ind_t slis,ind_t slie)
Will slice in the source string copy to the dest string.
dest : dest string
sour : source string
slis : slice start
slie : slice end
Header file : "EditString.h"
---------------------------------------------------------------
---------------------------------------------------------------
void strreplace(char *dest,char *repstr,char *str)
Replace specified string in the dest string.
dest : dest string
repstr : need replaced string
str : source string
Header file : "EditString.h"
---------------------------------------------------------------
---------------------------------------------------------------
void strinsert(char *dest,ind_t insi,char *sour)
Will source string insert to specified position of the dest string.
dest : dest string
insi : position index
sour : source string
Header file : "EditString.h"
---------------------------------------------------------------
---------------------------------------------------------------
void strtrim(char *dest,ind_t trii,size_t tril)
Trim the specified position of the dest string.
dest : dest string
trii : position index
tril : trim length
Header file : "EditString.h"
---------------------------------------------------------------
===============================================================