|
MoSync 3.0.1
|
String handling. More...
Functions | |
| char * | strncpy (char *dest, const char *source, size_t count) |
| int | strncmp (const char *s1, const char *s2, size_t count) |
| char * | strncat (char *s1, const char *s2, size_t count) |
| int | memcmp (const void *dst, const void *src, size_t n) |
| int | stricmp (const char *s1, const char *s2) |
| int | strnicmp (const char *s1, const char *s2, size_t count) |
| char * | strchr (const char *s, int ch) |
| char * | strrchr (const char *s, int ch) |
| char * | strstr (const char *str1, const char *str2) |
| size_t | strspn (const char *string, const char *control) |
| size_t | strcspn (const char *string, const char *control) |
| char * | strpbrk (const char *string, const char *control) |
| void * | memmove (void *dst, const void *src, size_t count) |
| void * | memchr (const void *buf, int ch, size_t count) |
| void * | memrchr (const void *buf, int ch, size_t count) |
| char * | strdup (const char *s) |
| char * | strlwr (char *s) |
| char * | strupr (char *s) |
| char * | strnset (char *s, int c, size_t count) |
| char * | strrev (char *s) |
| void * | memccpy (void *dst, const void *src, int c, size_t count) |
| int | memicmp (const void *buf1, const void *buf2, size_t count) |
| size_t | strlen (const char *s) |
| char * | strcat (char *dst, const char *src) |
| char * | strset (char *s, int c) |
| char * | strtok_r (char *string, const char *control, char **lasts) |
| char * | strtok (char *string, const char *control) |
| double | strtod (const char *string, char **endptr) |
| size_t | strnlen (const char *s, size_t count) |
| int | StringMatch (const char *a, const char *b) |
| int | StringMatch1 (const char *a, const char *b) |
| int | memeq (const void *a, const void *b, int size) |
| int | ConvertLatin1ToUtf8 (char *dst, int src) __attribute__((deprecated)) |
| int | i2a (int a, char *dst) |
| int | d2a (double d, char *dst) |
String handling.
| char* strncpy | ( | char * | dest, |
| const char * | source, | ||
| size_t | count | ||
| ) |
| int strncmp | ( | const char * | s1, |
| const char * | s2, | ||
| size_t | count | ||
| ) |
| char* strncat | ( | char * | s1, |
| const char * | s2, | ||
| size_t | count | ||
| ) |
| int memcmp | ( | const void * | dst, |
| const void * | src, | ||
| size_t | n | ||
| ) |
| int stricmp | ( | const char * | s1, |
| const char * | s2 | ||
| ) |
Compares strings s1 with s2 without case sensitivity.
| int strnicmp | ( | const char * | s1, |
| const char * | s2, | ||
| size_t | count | ||
| ) |
Compares strings s1 with s2 for a max length count without case sensitivity.
| char* strchr | ( | const char * | s, |
| int | ch | ||
| ) |
Scans a string for the first occurance of a character.
| char* strrchr | ( | const char * | s, |
| int | ch | ||
| ) |
Scans a string for the last occurance of a character.
| char* strstr | ( | const char * | str1, |
| const char * | str2 | ||
| ) |
Scans the substring str2 in string str1.
| size_t strspn | ( | const char * | string, |
| const char * | control | ||
| ) |
Find length of initial segment matching mask.
| size_t strcspn | ( | const char * | string, |
| const char * | control | ||
| ) |
Gets the length of a complementary substring.
| char* strpbrk | ( | const char * | string, |
| const char * | control | ||
| ) |
A pointer to the first occurrence in string of any of the characters that are part of control, or a null pointer if none of the characters of control is found in string before the terminating null-character.
| void* memmove | ( | void * | dst, |
| const void * | src, | ||
| size_t | count | ||
| ) |
Moves count bytes from src to dst.
| void* memchr | ( | const void * | buf, |
| int | ch, | ||
| size_t | count | ||
| ) |
Searches buf for count bytes for the first occurance of ch.
| void* memrchr | ( | const void * | buf, |
| int | ch, | ||
| size_t | count | ||
| ) |
Searches buf for count bytes for the last occurance of ch.
| char* strdup | ( | const char * | s | ) |
Makes a duplicate of a string, by allocation memory from the heap.
| char* strlwr | ( | char * | s | ) |
Makes a string lower case.
| char* strupr | ( | char * | s | ) |
Makes a string upper case.
| char* strnset | ( | char * | s, |
| int | c, | ||
| size_t | count | ||
| ) |
Sets a number of characters in the string s to c.
| char* strrev | ( | char * | s | ) |
Reverses the order of the characters in a string.
| void* memccpy | ( | void * | dst, |
| const void * | src, | ||
| int | c, | ||
| size_t | count | ||
| ) |
Copies bytes from memory area src into dst, stops if byte c is encounted
| int memicmp | ( | const void * | buf1, |
| const void * | buf2, | ||
| size_t | count | ||
| ) |
Compares first n (count) bytes of buf1 & buf2, is case insensitive.
| size_t strlen | ( | const char * | s | ) |
Get the length of a string.
| char* strcat | ( | char * | dst, |
| const char * | src | ||
| ) |
Appends the string dst with the string src, the dst string is appended at its end.
| char* strset | ( | char * | s, |
| int | c | ||
| ) |
Sets all the characters in string s to the character c,
| char* strtok_r | ( | char * | string, |
| const char * | control, | ||
| char ** | lasts | ||
| ) |
| char* strtok | ( | char * | string, |
| const char * | control | ||
| ) |
| double strtod | ( | const char * | string, |
| char ** | endptr | ||
| ) |
Converts a string to a double.
Stores the pointer to the character immediately following the converted string in the pointer pointed to by endptr, if endptr is not NULL.
| size_t strnlen | ( | const char * | s, |
| size_t | count | ||
| ) |
| int StringMatch | ( | const char * | a, |
| const char * | b | ||
| ) |
Compares two null-terminated strings. Returns TRUE if the characters of the shorter string equals the first characters of the longer string.
| int StringMatch1 | ( | const char * | a, |
| const char * | b | ||
| ) |
Compares two null-terminated strings. Returns TRUE if the characters of a equals the first characters of b.
| int memeq | ( | const void * | a, |
| const void * | b, | ||
| int | size | ||
| ) |
| int ConvertLatin1ToUtf8 | ( | char * | dst, |
| int | src | ||
| ) |
Converts a single Latin-1 character to UTF-8. Returns the number of bytes written to dst (1 or 2).
| int i2a | ( | int | a, |
| char * | dst | ||
| ) |
Stores a string representation of a into the buffer pointed to by dst. Returns strlen(dst).
| int d2a | ( | double | d, |
| char * | dst | ||
| ) |
Stores a string representation of d into the buffer pointed to by dst. Returns strlen(dst).