Public Member Functions | |
| virtual | ~string (void) |
| destructor | |
Static Public Member Functions | |
| static bool | is_diff (int n, const char *s1, const char *s2) |
| do two strings differ in first n chars? | |
| static bool | is_diff (const char *s1, const char *s2) |
| do two strings differ? | |
| static bool | is_diff_case (const char *s1, const char *s2) |
| do two strings differ, ignoring case? | |
| static bool | is_same (int n, const char *s1, const char *s2) |
| are two strings the same in first n chars? | |
| static bool | is_same (const char *s1, const char *s2) |
| are two strings the same? | |
| static bool | is_same_case (const char *s1, const char *s2) |
| are two strings the same, ignoring case? | |
String stuff used internal to the SmTk API.
| static bool smtk::string::is_diff | ( | int | n, | |
| const char * | s1, | |||
| const char * | s2 | |||
| ) | [inline, static] |
do two strings differ in first n chars?
is_diff() compares two strings s1 and s2. is_diff() does not look at all characters in the strings, but just what is necessary to determine the return value. This maybe a faster replacement for strcmp(3) when all you need to know is if the strings differ or not.
| n | is the number of characters to compare at most. | |
| s1 | a pointer to a string whose contents will not be changed | |
| s2 | a pointer to a string whose contents will not be changed |
| static bool smtk::string::is_diff | ( | const char * | s1, | |
| const char * | s2 | |||
| ) | [inline, static] |
do two strings differ?
is_diff() compares two strings s1 and s2. is_diff() does not look at all characters in the strings, but just what is necessary to determine the return value. This maybe a little faster replacement for strcmp(3) when all you need to know is if the strings differ or not.
| s1 | a pointer to a string whose contents will not be changed | |
| s2 | a pointer to a string whose contents will not be changed |
| static bool smtk::string::is_diff_case | ( | const char * | s1, | |
| const char * | s2 | |||
| ) | [inline, static] |
do two strings differ, ignoring case?
is_diff_case() compares two strings s1 and s2. is_diff_case() does not look at all characters in the strings, but just what is necessary to determine the return value. This maybe a faster replacement for strcmp(3) when all you need to know is if the strings differ or not.
This compares the characters using ASCII (ISO 646).
| s1 | a pointer to a string whose contents will not be changed | |
| s2 | a pointer to a string whose contents will not be changed |
| static bool smtk::string::is_same | ( | int | n, | |
| const char * | s1, | |||
| const char * | s2 | |||
| ) | [inline, static] |
are two strings the same in first n chars?
is_same() compares two strings s1 and s2. is_same() does not look at all characters in the strings, but just what is necessary to determine the return value. This maybe a faster replacement for strcmp(3) when all you need to know is if the strings are the same or not.
| n | is the number of characters to compare. | |
| s1 | a pointer to a string whose contents will not be changed | |
| s2 | a pointer to a string whose contents will not be changed |
| static bool smtk::string::is_same | ( | const char * | s1, | |
| const char * | s2 | |||
| ) | [inline, static] |
are two strings the same?
is_same() compares two strings s1 and s2. is_same() does not look at all characters in the strings, but just what is necessary to determine the return value. This maybe a faster replacement for strcmp(3) when all you need to know is if the strings are the same or not.
| s1 | a pointer to a string whose contents will not be changed | |
| s2 | a pointer to a string whose contents will not be changed |
| static bool smtk::string::is_same_case | ( | const char * | s1, | |
| const char * | s2 | |||
| ) | [inline, static] |
are two strings the same, ignoring case?
is_same_case() compares two strings s1 and s2. is_same_case() does not look at all characters in the strings, but just what is necessary to determine the return value. This maybe a faster replacement for strcasecmp(3) when all you need to know is if the strings are the same or not.
This compares the characters using ASCII (ISO 646).
| s1 | a pointer to a string whose contents will not be changed | |
| s2 | a pointer to a string whose contents will not be changed |
1.5.2