|
TRIO_STRING_PUBLIC char *trio_create | TRIO_ARGS1 ((size), size_t size) |
|
TRIO_STRING_PUBLIC void trio_destroy | TRIO_ARGS1 ((string), char *string) |
|
TRIO_STRING_PUBLIC size_t trio_length | TRIO_ARGS1 ((string), TRIO_CONST char *string) |
|
TRIO_STRING_PUBLIC int trio_append | TRIO_ARGS2 ((target, source), char *target, TRIO_CONST char *source) |
|
TRIO_STRING_PUBLIC int trio_append_max | TRIO_ARGS3 ((target, max, source), char *target, size_t max, TRIO_CONST char *source) |
|
TRIO_STRING_PUBLIC int trio_contains | TRIO_ARGS2 ((string, substring), TRIO_CONST char *string, TRIO_CONST char *substring) |
|
TRIO_STRING_PRIVATE char *TrioDuplicateMax | TRIO_ARGS2 ((source, size), TRIO_CONST char *source, size_t size) |
|
TRIO_STRING_PUBLIC char *trio_duplicate | TRIO_ARGS1 ((source), TRIO_CONST char *source) |
|
TRIO_STRING_PUBLIC char *trio_duplicate_max | TRIO_ARGS2 ((source, max), TRIO_CONST char *source, size_t max) |
|
TRIO_STRING_PUBLIC int trio_equal | TRIO_ARGS2 ((first, second), TRIO_CONST char *first, TRIO_CONST char *second) |
|
TRIO_STRING_PUBLIC int trio_equal_case_max | TRIO_ARGS3 ((first, max, second), TRIO_CONST char *first, size_t max, TRIO_CONST char *second) |
|
TRIO_STRING_PUBLIC TRIO_CONST char *trio_error | TRIO_ARGS1 ((error_number), int error_number) |
|
TRIO_STRING_PUBLIC size_t trio_format_date_max | TRIO_ARGS4 ((target, max, format, datetime), char *target, size_t max, TRIO_CONST char *format, TRIO_CONST struct tm *datetime) |
|
TRIO_STRING_PUBLIC unsigned long trio_hash | TRIO_ARGS2 ((string, type), TRIO_CONST char *string, int type) |
|
TRIO_STRING_PUBLIC char *trio_index | TRIO_ARGS2 ((string, character), TRIO_CONST char *string, int character) |
|
TRIO_STRING_PUBLIC int trio_lower | TRIO_ARGS1 ((target), char *target) |
|
TRIO_STRING_PUBLIC int trio_match | TRIO_ARGS2 ((string, pattern), TRIO_CONST char *string, TRIO_CONST char *pattern) |
|
TRIO_STRING_PUBLIC size_t trio_span_function | TRIO_ARGS3 ((target, source, Function), char *target, TRIO_CONST char *source, int(*Function) TRIO_PROTO((int))) |
|
TRIO_STRING_PUBLIC char *trio_substring_max | TRIO_ARGS3 ((string, max, substring), TRIO_CONST char *string, size_t max, TRIO_CONST char *substring) |
|
TRIO_STRING_PUBLIC char *trio_tokenize | TRIO_ARGS2 ((string, delimiters), char *string, TRIO_CONST char *delimiters) |
|
TRIO_STRING_PUBLIC trio_long_double_t trio_to_long_double | TRIO_ARGS2 ((source, endp), TRIO_CONST char *source, char **endp) |
|
TRIO_STRING_PUBLIC long trio_to_long | TRIO_ARGS3 ((string, endp, base), TRIO_CONST char *string, char **endp, int base) |
|
TRIO_STRING_PUBLIC int trio_to_lower | TRIO_ARGS1 ((source), int source) |
|
Compare if two strings are equal.
- Parameters
-
first | First string. |
second | Second string. |
- Returns
- Boolean indicating whether the two strings are equal or not.
Case-insensitive comparison.
Compare if two strings are equal.
- Parameters
-
first | First string. |
second | Second string. |
- Returns
- Boolean indicating whether the two strings are equal or not.
Case-sensitive comparison.
Compare if two strings are equal.
- Parameters
-
first | First string. |
second | Second string. |
- Returns
- Boolean indicating whether the two strings are equal or not.
Collating characters are considered equal.
Definition at line 401 of file triostr.c.
404{
407
409 {
410#if defined(USE_STRCASECMP)
412#else
414 {
415 if (trio_to_upper(*
first) != trio_to_upper(*second))
416 {
417 break;
418 }
420 second++;
421 }
423#endif
424 }
426}
Compare two strings using wildcards.
- Parameters
-
string | String to be searched. |
pattern | Pattern, including wildcards, to search for. |
- Returns
- Boolean value indicating success or failure.
Case-insensitive comparison.
The following wildcards can be used
*
Match any number of characters.
? Match a single character.
Compare two strings using wildcards.
- Parameters
-
string | String to be searched. |
pattern | Pattern, including wildcards, to search for. |
- Returns
- Boolean value indicating success or failure.
Case-sensitive comparison.
The following wildcards can be used
*
Match any number of characters.
? Match a single character.
Definition at line 735 of file triostr.c.
738{
741
743 {
745 {
747 }
748 if ((trio_to_upper((
int)*
string) != trio_to_upper((
int)*
pattern))
750 {
752 }
753 }
754
757
758 do
759 {
760 if ( trio_match(
string, &
pattern[1]) )
761 {
763 }
764 }
765 while (*string++);
766
768}