|
Static Public Methods |
|
Included are the functions defined in <cstring> and their <cwchar> equivalents.
- Todo:
-
To be complete, we should add strcoll, and strxfrm.
|
| const void * | memchr (const void *s, int c, size_t len) |
| | Finds characters in a buffer (const void version).
|
| void * | memchr (void *s, int c, size_t len) |
| | Finds characters in a buffer (void version).
|
| int | memcmp (const void *t, const void *s, size_t len) |
| | Compares two buffers.
|
| void * | memcpy (void *t, const void *s, size_t len) |
| | Copies one buffer to another.
|
| void * | memmove (void *t, const void *s, size_t len) |
| | Moves one buffer to another.
|
| void * | memset (void *s, int c, size_t len) |
| | Fills a buffer with a character value.
|
| char * | strcat (char *s, const char *t) |
| | Appends a string to another string (char version).
|
| wchar_t * | strcat (wchar_t *s, const wchar_t *t) |
| | Appends a string to another string (wchar_t version).
|
| const char * | strchr (const char *s, int c) |
| const wchar_t * | strchr (const wchar_t *s, wint_t c) |
| char * | strchr (char *s, int c) |
| | Finds the first occurance of a character in a string (char version).
|
| wchar_t * | strchr (wchar_t *s, wint_t c) |
| | Finds the first occurance of a character in a string (wchar_t version).
|
| int | strcmp (const char *s, const char *t) |
| | Compares two strings (char version).
|
| int | strcmp (const ACE_WCHAR_T *s, const ACE_WCHAR_T *t) |
| | Compares two strings (wchar_t version).
|
| char * | strcpy (char *s, const char *t) |
| | Copies a string (char version).
|
| wchar_t * | strcpy (wchar_t *s, const wchar_t *t) |
| | Copies a string (wchar_t version).
|
| size_t | strcspn (const char *s, const char *reject) |
| size_t | strcspn (const wchar_t *s, const wchar_t *reject) |
| char * | strerror (int errnum) |
| | Returns a system error message.
|
| size_t | strlen (const char *s) |
| | Finds the length of a string (char version).
|
| size_t | strlen (const ACE_WCHAR_T *s) |
| | Finds the length of a string (ACE_WCHAR_T version).
|
| size_t | strnlen (const char *s, size_t maxlen) |
| | Finds the length of a limited-length string (char version).
|
| size_t | strnlen (const ACE_WCHAR_T *s, size_t maxlen) |
| | Finds the length of a limited-length string (ACE_WCHAR_T version).
|
| char * | strncat (char *s, const char *t, size_t len) |
| | Appends part of a string to another string (char version).
|
| ACE_WCHAR_T * | strncat (ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len) |
| | Appends part of a string to another string (wchar_t version).
|
| int | strncmp (const char *s, const char *t, size_t len) |
| | Compares two arrays (char version).
|
| int | strncmp (const ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len) |
| | Compares two arrays (wchar_t version).
|
| char * | strncpy (char *s, const char *t, size_t len) |
| | Copies an array (char version).
|
| ACE_WCHAR_T * | strncpy (ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len) |
| | Copies an array (ACE_WCHAR_T version).
|
| const char * | strpbrk (const char *s1, const char *s2) |
| | Searches for characters in a string (const char version).
|
| const wchar_t * | strpbrk (const wchar_t *s1, const wchar_t *s2) |
| | Searches for characters in a string (const wchar_t version).
|
| char * | strpbrk (char *s1, const char *s2) |
| | Searches for characters in a string (char version).
|
| wchar_t * | strpbrk (wchar_t *s1, const wchar_t *s2) |
| | Searches for characters in a string (wchar_t version).
|
| const char * | strrchr (const char *s, int c) |
| const wchar_t * | strrchr (const wchar_t *s, wint_t c) |
| char * | strrchr (char *s, int c) |
| | Finds the last occurance of a character in a string (char version).
|
| wchar_t * | strrchr (wchar_t *s, wint_t c) |
| | Finds the last occurance of a character in a string (wchar_t version).
|
| size_t | strspn (const char *s1, const char *s2) |
| size_t | strspn (const wchar_t *s1, const wchar_t *s2) |
| const char * | strstr (const char *s, const char *t) |
| const wchar_t * | strstr (const wchar_t *s, const wchar_t *t) |
| char * | strstr (char *s, const char *t) |
| | Finds the first occurance of a substring in a string (char version).
|
| wchar_t * | strstr (wchar_t *s, const wchar_t *t) |
| | Finds the first occurance of a substring in a string (wchar_t version).
|
| char * | strtok (char *s, const char *tokens) |
| | Finds the next token in a string (char version).
|
| wchar_t * | strtok (wchar_t *s, const wchar_t *tokens) |
| | Finds the next token in a string (wchar_t version).
|
|
Included are the functions defined in <cctype> and their <cwctype> equivalents.
Since they are often implemented as macros, we don't use the same name here. Instead, we change by prepending "ace_" (with the exception of to_lower).
- Todo:
-
To be complete, we should add: isalnum, isalpha, iscntrl isdigit, isgraph, islower, ispunct, isupper, isxdigit, and toupper.
|
| int | ace_isprint (const ACE_TCHAR c) |
| | Returns true if the character is a printable character.
|
| int | ace_isspace (const ACE_TCHAR c) |
| | Returns true if the character is a space character.
|
| int | to_lower (int c) |
| | Converts a character to lower case (char version).
|
| wint_t | to_lower (wint_t c) |
| | Converts a character to lower case (wchar_t version).
|
|
These functions aren't in the standard.
|
| char * | itoa (int value, char *string, int radix) |
| | Converts an integer to a string.
|
| wchar_t * | itoa (int value, wchar_t *string, int radix) |
| | Converts an integer to a string.
|
| int | strcasecmp (const char *s, const char *t) |
| | Compares two strings (case insensitive const char version).
|
| int | strcasecmp (const wchar_t *s, const wchar_t *t) |
| | Compares two strings (case insensitive const wchar_t version).
|
| const char * | strnchr (const char *s, int c, size_t len) |
| const ACE_WCHAR_T * | strnchr (const ACE_WCHAR_T *s, ACE_WINT_T c, size_t len) |
| char * | strnchr (char *s, int c, size_t len) |
| | Finds the first occurance of a character in an array (char version).
|
| ACE_WCHAR_T * | strnchr (ACE_WCHAR_T *s, ACE_WINT_T c, size_t len) |
| | Finds the first occurance of a character in an array (ACE_WCHAR_T version).
|
| int | strncasecmp (const char *s, const char *t, size_t len) |
| | Compares two arrays (case insensitive const char version).
|
| int | strncasecmp (const wchar_t *s, const wchar_t *t, size_t len) |
| | Compares two arrays (case insensitive const wchar_t version).
|
| char * | strecpy (char *des, const char *src) |
| wchar_t * | strecpy (wchar_t *s, const wchar_t *t) |
| char * | strsncpy (char *dst, const char *src, size_t maxlen) |
| | This is a "safe" c string copy function (char version).
|
| ACE_WCHAR_T * | strsncpy (ACE_WCHAR_T *dst, const ACE_WCHAR_T *src, size_t maxlen) |
| | This is a "safe" c string copy function (wchar_t version).
|
| const char * | strnstr (const char *s, const char *t, size_t len) |
| const ACE_WCHAR_T * | strnstr (const ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len) |
| char * | strnstr (char *s, const char *t, size_t len) |
| | Finds the first occurance of a substring in an array (char version).
|
| ACE_WCHAR_T * | strnstr (ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len) |
| | Finds the first occurance of a substring in an array (wchar_t version).
|
| char * | strdup (const char *s) |
| | Returns a malloced duplicated string (char version).
|
| wchar_t * | strdup (const wchar_t *s) |
| | Returns a malloced duplicated string (wchar_t version).
|
| char * | strtok_r (char *s, const char *tokens, char **lasts) |
| | Finds the next token in a string (safe char version).
|
| wchar_t * | strtok_r (ACE_WCHAR_T *s, const ACE_WCHAR_T *tokens, ACE_WCHAR_T **lasts) |
| | Finds the next token in a string (wchar_t version).
|
| double | strtod (const char *s, char **endptr) |
| | Converts a string to a double value (char version).
|
| double | strtod (const wchar_t *s, wchar_t **endptr) |
| | Converts a string to a double value (wchar_t version).
|
| long | strtol (const char *s, char **ptr, int base) |
| | Converts a string to a long value (char version).
|
| long | strtol (const wchar_t *s, wchar_t **ptr, int base) |
| | Converts a string to a long value (wchar_t version).
|
| unsigned long | strtoul (const char *s, char **ptr, int base) |
| | Converts a string to an unsigned long value (char version).
|
| unsigned long | strtoul (const wchar_t *s, wchar_t **ptr, int base) |
| | Converts a string to an unsigned long value (wchar_t version).
|
Static Private Methods |
|
These methods are provided for platforms that do not have a native implementation.
|
| char * | itoa_emulation (int value, char *string, int radix) |
| | Emulated itoa - Converts an integer to a string.
|
| wchar_t * | itow_emulation (int value, wchar_t *string, int radix) |
| | Emulated itow - Converts an integer to a string.
|
| const void * | memchr_emulation (const void *s, int c, size_t len) |
| | Emulated memchr - Finds a character in a buffer.
|
| int | strcasecmp_emulation (const char *s, const char *t) |
| | Emulated strcasecmp - Performs a case insensitive comparison of strings.
|
| int | strncasecmp_emulation (const char *s, const char *t, size_t len) |
| | Emulated strncasecmp - Performs a case insensitvie comparison of arrays.
|
| size_t | strcspn_emulation (const char *s, const char *reject) |
| | Emulated strcspn - Finds a substring in a string.
|
| char * | strchr_emulation (char *s, int c) |
| const char * | strchr_emulation (const char *s, int c) |
| char * | strrchr_emulation (char *s, int c) |
| const char * | strrchr_emulation (const char *s, int c) |
| char * | strtok_r_emulation (char *s, const char *tokens, char **lasts) |
| | Emulated strtok_r.
|
| wchar_t * | strtok_r_emulation (ACE_WCHAR_T *s, const ACE_WCHAR_T *tokens, ACE_WCHAR_T **lasts) |
| | Emulated strtok_r (wchar_t version).
|
| wchar_t * | wcscat_emulation (wchar_t *destination, const wchar_t *source) |
| | Emulated wcscat - Appends a string.
|
| wchar_t * | wcschr_emulation (const wchar_t *string, wint_t c) |
| | Emulated wcschr - Finds a character in a string.
|
| int | wcscmp_emulation (const ACE_WCHAR_T *string1, const ACE_WCHAR_T *string2) |
| | Emulated wcscmp - Compares strings.
|
| wchar_t * | wcscpy_emulation (wchar_t *destination, const wchar_t *source) |
| | Emulated wcscpy - Copies a string.
|
| int | wcsicmp_emulation (const wchar_t *string1, const wchar_t *string2) |
| | Emulated wcsicmp - Performs a case insensitive comparison of strings.
|
| size_t | wcslen_emulation (const ACE_WCHAR_T *string) |
| | Emulated wcslen - Returns the length of a string.
|
| ACE_WCHAR_T * | wcsncat_emulation (ACE_WCHAR_T *destination, const ACE_WCHAR_T *source, size_t count) |
| | Emulated wcscat - Appends a string.
|
| int | wcsncmp_emulation (const ACE_WCHAR_T *string1, const ACE_WCHAR_T *string2, size_t len) |
| | Emulated wcsncmp - Compares two arrays.
|
| ACE_WCHAR_T * | wcsncpy_emulation (ACE_WCHAR_T *destination, const ACE_WCHAR_T *source, size_t len) |
| | Emulated wcsncpy - Copies an array.
|
| int | wcsnicmp_emulation (const wchar_t *string1, const wchar_t *string2, size_t len) |
| wchar_t * | wcspbrk_emulation (const wchar_t *string, const wchar_t *charset) |
| | Emulated wcspbrk - Searches for characters in a string.
|
| wchar_t * | wcsrchr_emulation (wchar_t *string, wint_t c) |
| const wchar_t * | wcsrchr_emulation (const wchar_t *string, wint_t c) |
| size_t | wcscspn_emulation (const wchar_t *string, const wchar_t *reject) |
| | Emulated wcscspn.
|
| size_t | wcsspn_emulation (const wchar_t *string, const wchar_t *charset) |
| | Emulated wcsspn.
|
| wchar_t * | wcsstr_emulation (const wchar_t *string, const wchar_t *charset) |
| | Emulated wcsstr - Performs a case insensitive comparison of two strings.
|