diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-24 17:52:31 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-24 17:52:31 +0100 |
commit | 0dd1d4133b1e49646ec4fc7cfb256dc20028f238 (patch) | |
tree | 2ad3977c618254ef162a9716e505d9c671d94b17 /src/core | |
parent | a67556907d739bbe6db5110e46d581165fd41c64 (diff) | |
download | weechat-0dd1d4133b1e49646ec4fc7cfb256dc20028f238.zip |
doc/api: mention "UTF-8" in char/string comparison functions
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-string.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c index 391d23db3..64ee364b1 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -396,8 +396,8 @@ string_toupper (const char *string) /* * Compares two chars (case sensitive). * - * Returns: arithmetic result of subtracting the first char in string2 - * from the first char in string1: + * Returns: arithmetic result of subtracting the first UTF-8 char in string2 + * from the first UTF-8 char in string1: * < 0: string1 < string2 * 0: string1 == string2 * > 0: string1 > string2 @@ -412,8 +412,8 @@ string_charcmp (const char *string1, const char *string2) /* * Compares two chars (case insensitive). * - * Returns: arithmetic result of subtracting the first char in string2 - * (converted to lowercase) from the first char in string1 (converted + * Returns: arithmetic result of subtracting the first UTF-8 char in string2 + * (converted to lowercase) from the first UTF-8 char in string1 (converted * to lowercase): * < 0: string1 < string2 * 0: string1 == string2 @@ -460,9 +460,9 @@ string_charcasecmp (const char *string1, const char *string2) * - range = 30: A-Z [ \ ] ^ ==> a-z { | } ~ * (ranges 29 and 30 are used by some protocols like IRC) * - * Returns: arithmetic result of subtracting the last compared char in string2 - * (converted to lowercase) from the last compared char in string1 (converted - * to lowercase): + * Returns: arithmetic result of subtracting the last compared UTF-8 char in + * string2 (converted to lowercase) from the last compared UTF-8 char in + * string1 (converted to lowercase): * < 0: string1 < string2 * 0: string1 == string2 * > 0: string1 > string2 @@ -487,9 +487,9 @@ string_charcasecmp_range (const char *string1, const char *string2, int range) /* * Compares two strings (case insensitive). * - * Returns: arithmetic result of subtracting the last compared char in string2 - * (converted to lowercase) from the last compared char in string1 (converted - * to lowercase): + * Returns: arithmetic result of subtracting the last compared UTF-8 char in + * string2 (converted to lowercase) from the last compared UTF-8 char in + * string1 (converted to lowercase): * < 0: string1 < string2 * 0: string1 == string2 * > 0: string1 > string2 @@ -525,9 +525,9 @@ string_strcasecmp (const char *string1, const char *string2) * - range = 30: A-Z [ \ ] ^ ==> a-z { | } ~ * (ranges 29 and 30 are used by some protocols like IRC) * - * Returns: arithmetic result of subtracting the last compared char in string2 - * (converted to lowercase) from the last compared char in string1 (converted - * to lowercase): + * Returns: arithmetic result of subtracting the last compared UTF-8 char in + * string2 (converted to lowercase) from the last compared UTF-8 char in + * string1 (converted to lowercase): * < 0: string1 < string2 * 0: string1 == string2 * > 0: string1 > string2 @@ -554,9 +554,9 @@ string_strcasecmp_range (const char *string1, const char *string2, int range) /* * Compares two strings with max length (case insensitive). * - * Returns: arithmetic result of subtracting the last compared char in string2 - * (converted to lowercase) from the last compared char in string1 (converted - * to lowercase): + * Returns: arithmetic result of subtracting the last compared UTF-8 char in + * string2 (converted to lowercase) from the last compared UTF-8 char in + * string1 (converted to lowercase): * < 0: string1 < string2 * 0: string1 == string2 * > 0: string1 > string2 @@ -597,9 +597,9 @@ string_strncasecmp (const char *string1, const char *string2, int max) * - range = 30: A-Z [ \ ] ^ ==> a-z { | } ~ * (ranges 29 and 30 are used by some protocols like IRC) * - * Returns: arithmetic result of subtracting the last compared char in string2 - * (converted to lowercase) from the last compared char in string1 (converted - * to lowercase): + * Returns: arithmetic result of subtracting the last compared UTF-8 char in + * string2 (converted to lowercase) from the last compared UTF-8 char in + * string1 (converted to lowercase): * < 0: string1 < string2 * 0: string1 == string2 * > 0: string1 > string2 @@ -632,10 +632,10 @@ string_strncasecmp_range (const char *string1, const char *string2, int max, /* * Compares two strings, ignoring some chars. * - * Returns: arithmetic result of subtracting the last compared char in string2 - * (converted to lowercase if case_sensitive is set to 0) from the last - * compared char in string1 (converted to lowercase if case_sensitive is set - * to 0): + * Returns: arithmetic result of subtracting the last compared UTF-8 char in + * string2 (converted to lowercase if case_sensitive is set to 0) from the last + * compared UTF-8 char in string1 (converted to lowercase if case_sensitive is + * set to 0): * < 0: string1 < string2 * 0: string1 == string2 * > 0: string1 > string2 |