Files | |
file | text.c |
ASCII Text Manipulation. | |
Functions | |
l_ulong | TextLen (l_text t) |
Return length of text t. | |
l_text | TextChr (l_text t, l_char c) |
Return first occurence of char c in text t, if occurence is not found return 0. | |
l_text | TextRChr (l_text t, l_char c) |
Return last occurence of char c in text t, if occurence not found return 0. | |
long | TextCompare (l_text a, l_text b) |
Compare strings a and b, return 0 if identical. | |
long | TextNCompare (l_text a, l_text b, l_ulong n) |
Compare strings a and b on length n, return 0 if identical. | |
long | TextCaseCompare (l_text a, l_text b) |
Compare strings a and b and dont mind the case, return 0 if identical. | |
long | TextNCaseCompare (l_text a, l_text b, l_ulong n) |
Compare strings a and b on length n and dont mind the case, return 0 if identical. | |
long | TextSqNCaseCompare (l_text sq, l_text t, l_ulong n) |
Compare a sequence (sq, n) and a text t, return 0 if identical,. | |
l_text | TextCopy (l_text d, l_text s) |
Copy text s to text d, return d. | |
l_text | TextNCopy (l_text d, l_text s, l_ulong n) |
Copy text s to text d of n chars, add '\0' at end ,return d. | |
l_text | TextDup (l_text t) |
Make a copy of string t in a new memory allocation. | |
l_text | TextNDup (l_text t, l_ulong n) |
Make a copy of n chars of text t in a new memory allocation (add '\0' at end). | |
l_text | TextCat (l_text d, l_text t) |
Add text t at the text d end, text d must have enouf memory allocated. | |
l_text | TextArgs (l_text szFormat,...) |
Create a string with args. | |
l_text | TextToUpper (l_text d) |
Transform text to upper case. | |
l_text | TextToLower (l_text d) |
Transform text to lower case. | |
Variables | |
char | CommonBufferText [COMBUF_TEXT_SIZE] |
This is a common buffer text, be careful with it. |