Connect the next. . .
e) increase
Acting CHAR * STRING CSTRING Dynamic Add value STRCAT PUSH APPEND APPENDCHAR APPENDFORMAT
f) intercept
Role Char * String CSTRING Get partial values Substr Left Mid Right Truncate
g) removal
Role Char * String CString Remove Part Value
REMOVE REMOVE Removes Blank Value RemoveBlanks Note: This is ATL, non-C function Remove_if Trim Trimleft Trimrigth
h) Convert case
Role Char * String CString Convert case _strlwr _strupr
Makelower makeupper
i) conversion with other types
Role Char * String CString Transformation into Digital ATOI Atod Atof
Format is converted to Char *
C_Str GetBuffer GetBuffersetlength
j) formatting
Role Char * String CString format Sprintf
Format
K) get the length
Role Char * String CString Get the length Strlen Length GetLength Get size
Size getAlloclength
l) judgment is empty
Role Char * String CString determines if it is empty, whether it is == NULL or the first character is' /
0 '
EMPTY ISEMPTY
m) Reduce the size
Aggregate CHAR * STRING CSTRING Redefile Size Realloc New Resize GetBuffersetLength
n) Release Resources
Role Char * String CString Release Free Delete (delete [])
ReleaseBuffer ReleaseBuffersetlength
(5) Safety
CSTRING> STRING> CHAR *;
(6) Flexibility
CSTRING> STRING> CHAR *;
(7) Portability
Char * = String> CString
Next
Joise.li
Joise@126.com
http://joise.126.com