From 0505a0ff7685d3a57f4c9e07f9a0e31f6c601204 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 6 Sep 2024 08:25:09 -0400 Subject: [PATCH] spelling: case-insensitive Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 10 +++++----- UPGRADING.md | 8 ++++---- doc/en/weechat_plugin_api.en.adoc | 20 ++++++++++---------- doc/en/weechat_user.en.adoc | 10 +++++----- doc/it/weechat_plugin_api.it.adoc | 18 +++++++++--------- doc/it/weechat_user.it.adoc | 10 +++++----- doc/ja/weechat_plugin_api.ja.adoc | 14 +++++++------- doc/ja/weechat_user.ja.adoc | 6 +++--- src/core/core-command.c | 12 ++++++------ src/core/core-config.c | 12 ++++++------ src/core/core-list.c | 4 ++-- src/core/core-string.c | 14 +++++++------- src/gui/gui-buffer.c | 4 ++-- src/plugins/buflist/buflist-config.c | 4 ++-- src/plugins/fset/fset-config.c | 4 ++-- src/plugins/irc/irc-command.c | 4 ++-- src/plugins/irc/irc-config.c | 12 ++++++------ src/plugins/irc/irc-join.c | 2 +- src/plugins/irc/irc-server.c | 4 ++-- src/plugins/relay/relay-config.c | 4 ++-- tests/unit/gui/test-gui-hotlist.cpp | 2 +- 21 files changed, 89 insertions(+), 89 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8f14a8dd..8d0932011 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -212,7 +212,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._ - core: display a specific message when the value of option is unchanged after `/set` command - core: add variable `${highlight}` in option weechat.look.buffer_time_format ([#2079](https://github.com/weechat/weechat/issues/2079)) - core: reintroduce help on the variables and operators in `/help eval` ([#2005](https://github.com/weechat/weechat/issues/2005)) -- core: allow case insensitive search of partial buffer name with `(?i)name` in command `/buffer` +- core: allow case-insensitive search of partial buffer name with `(?i)name` in command `/buffer` - core: use function util_strftimeval in evaluation of expression `date:xxx` - fset: allow filename starting with "~" in command `/fset -export` - irc: store lag in channel and private buffers (local variable "lag"), in addition to the server buffer @@ -439,7 +439,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._ - fset: allow long type name in type filter - irc: add count for all nick modes in output of `/names` ([#97](https://github.com/weechat/weechat/issues/97), [#2020](https://github.com/weechat/weechat/issues/2020)) - irc: add count and mode filter in command `/names` ([#98](https://github.com/weechat/weechat/issues/98)) -- irc: compute color in case insensitive way, reintroduce infos "irc_nick_color" and "irc_nick_color_name", add support of server name ([#194](https://github.com/weechat/weechat/issues/194)) +- irc: compute color in case-insensitive way, reintroduce infos "irc_nick_color" and "irc_nick_color_name", add support of server name ([#194](https://github.com/weechat/weechat/issues/194)) - irc: add buffer for /list reply, add options irc.color.list_buffer_line_selected, irc.color.list_buffer_line_selected_bg, irc.look.list_buffer_sort, irc.look.list_buffer_scroll_horizontal, irc.look.new_list_position, irc.look.list_buffer_topic_strip_colors ([#1972](https://github.com/weechat/weechat/issues/1972)) - irc: display commands 716/717 in private buffer (if present) ([#146](https://github.com/weechat/weechat/issues/146)) - irc: create default options irc.ctcp.* when file irc.conf is created ([#1974](https://github.com/weechat/weechat/issues/1974)) @@ -1760,7 +1760,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._ - buflist: add option buflist.look.auto_scroll ([#332](https://github.com/weechat/weechat/issues/332)) - buflist: add keys `F1` / `F2`, `Alt`+`F1` / `Alt`+`F2` to scroll the buflist bar - buflist: display a warning when the script "buffers.pl" is loaded -- buflist: add support of char "~" in option buflist.look.sort for case insensitive comparison +- buflist: add support of char "~" in option buflist.look.sort for case-insensitive comparison - buflist: add variable `${format_name}` in bar item evaluation and option buflist.format.name ([#1020](https://github.com/weechat/weechat/issues/1020)) - buflist: add variables `${current_buffer}` and `${merged}` (booleans "0" / "1") in bar item evaluation - relay: add option `start` in command `/relay` @@ -2268,7 +2268,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._ - core: mute all buffers by default in command `/mute` (replace option -all by -core) - api: allow value "-1" for property "hotlist" in function buffer_set (to remove a buffer from hotlist) - api: add option "buffer_flush" in function hook_process_hashtable -- api: add support of case insensitive search and search by buffer full name in function buffer_search ([bug #34318](https://savannah.nongnu.org/bugs/?34318)) +- api: add support of case-insensitive search and search by buffer full name in function buffer_search ([bug #34318](https://savannah.nongnu.org/bugs/?34318)) - api: add option "detached" in function hook_process_hashtable - api: add option "signal" in function hook_set to send a signal to the child process - api: add support of nested variables in function string_eval_expression and command `/eval` ([#35](https://github.com/weechat/weechat/issues/35)) @@ -2958,7 +2958,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._ - irc: add options irc.look.highlight_{server|channel|pv} to customize or disable default nick highlight ([task #11128](https://savannah.nongnu.org/task/?11128)) - irc: use redirection to get channel modes after update of modes on channel, display output of `/mode #channel`, allow `/mode` without argument (display modes of current channel or user modes on server buffer) - irc: add optional server in info "irc_is_channel" (before channel name) ([bug #35124](https://savannah.nongnu.org/bugs/?35124)), add optional server in info_hashtable "irc_message_parse" -- irc: add case insensitive string comparison based on casemapping of server (rfc1459, strict-rfc1459, ascii) ([bug #34239](https://savannah.nongnu.org/bugs/?34239)) +- irc: add case-insensitive string comparison based on casemapping of server (rfc1459, strict-rfc1459, ascii) ([bug #34239](https://savannah.nongnu.org/bugs/?34239)) - irc: add option irc.color.mirc_remap to remap mirc colors in messages to WeeChat colors - irc: allow URL "irc://" in command `/connect` - irc: use extended regex in commands `/ignore` and `/list` diff --git a/UPGRADING.md b/UPGRADING.md index aec615104..5e356b7a7 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -219,8 +219,8 @@ version 1.5 are now used again, with a change in parameter: the server is now optional before the nick: "server,nick".\ The nick is first converted to lower case, following the value of CASEMAPPING on the server, then hashed to compute the color.\ -That means the color for a nick is now case insensitive (in the way IRC servers -are case insensitive, so with a limited range of chars only). +That means the color for a nick is now case-insensitive (in the way IRC servers +are case-insensitive, so with a limited range of chars only). If a script was using this info with a comma in nickname (which should not happen anyway), this is now interpreted as the server name, and the script must be @@ -641,7 +641,7 @@ compared UTF-8 char in string2 from the last compared UTF-8 char in string1: In addition, the case conversion has been extended, now in addition to range A-Z, all chars that have a lower case version are handled.\ -That means for example the case insensitive comparison of "é" and "É" is 0 +That means for example the case-insensitive comparison of "é" and "É" is 0 (chars are considered equal). Example with WeeChat 3.8: @@ -2815,7 +2815,7 @@ Extended regex is used in filters and irc ignore, so some chars that needed escape in past do not need anymore (for example `[0-9]\+` becomes `[0-9]+`), filters and ignore have to be manually fixed. -Option weechat.look.highlight_regex becomes case insensitive by default, to +Option weechat.look.highlight_regex becomes case-insensitive by default, to make it case sensitive, use "(?-i)" at beginning of string, for example: "(?-i)FlashCode|flashy". diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index 79f476ed8..52dc39e65 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -890,7 +890,7 @@ This function is not available in scripting API. _Updated in 1.0, 3.8._ -Case insensitive string comparison. +Case-insensitive string comparison. [NOTE] Behavior has changed in version 3.8: now all uppercase letters are properly @@ -979,7 +979,7 @@ This function is not available in scripting API. _Updated in 1.0, 3.8._ -Case insensitive string comparison, for _max_ chars. +Case-insensitive string comparison, for _max_ chars. [NOTE] Behavior has changed in version 3.8: now all uppercase letters are properly @@ -1115,7 +1115,7 @@ This function is not available in scripting API. _Updated in 1.3, 3.8._ -Case insensitive string search. +Case-insensitive string search. [NOTE] Behavior has changed in version 3.8: now all uppercase letters are properly @@ -1598,7 +1598,7 @@ Flags must be at beginning of regular expression. Format is: Allowed flags are: * _e_: POSIX extended regular expression (_REG_EXTENDED_) -* _i_: case insensitive (_REG_ICASE_) +* _i_: case-insensitive (_REG_ICASE_) * _n_: match-any-character operators don't match a newline (_REG_NEWLINE_) * _s_: support for substring addressing of matches is not required (_REG_NOSUB_) @@ -2807,7 +2807,7 @@ from first used to last): == `+1+` | `+=*+` | 1.8 -| Is matching mask where "*" is allowed, case insensitive (see function <<_string_match,string_match>>) +| Is matching mask where "*" is allowed, case-insensitive (see function <<_string_match,string_match>>) | >> `+abc def =* A*F+` + == `+1+` + + @@ -2815,7 +2815,7 @@ from first used to last): == `+0+` | `+!*+` | 1.8 -| Is NOT wildcard mask where "*" is allowed, case insensitive (see function <<_string_match,string_match>>) +| Is NOT wildcard mask where "*" is allowed, case-insensitive (see function <<_string_match,string_match>>) | >> `+abc def !* A*F+` + == `+0+` + + @@ -2839,7 +2839,7 @@ from first used to last): == `+1+` | `+=-+` | 2.9 -| Is included, case insensitive +| Is included, case-insensitive | >> `+abc def =- BC+` + == `+1+` + + @@ -2847,7 +2847,7 @@ from first used to last): == `+0+` | `+!-+` | 2.9 -| Is NOT included, case insensitive +| Is NOT included, case-insensitive | >> `+abc def !- BC+` + == `+0+` + + @@ -14407,7 +14407,7 @@ Arguments: ** `+==id+`: the name used is the buffer unique identifier (`id`) _(WeeChat ≥ 4.3.0)_ * _name_: name of buffer, if it is NULL or empty string, the current buffer is returned (buffer displayed by current window); if the name starts with - `(?i)`, the search is case insensitive _(WeeChat ≥ 1.0)_ + `(?i)`, the search is case-insensitive _(WeeChat ≥ 1.0)_ Return value: @@ -14932,7 +14932,7 @@ Properties: | "0" to remove nicklist for buffer, "1" to add nicklist for buffer. | nicklist_case_sensitive | | "0" or "1" -| "0" to have case insensitive nicklist, "1" to have case sensitive nicklist. +| "0" to have case-insensitive nicklist, "1" to have case sensitive nicklist. | nicklist_display_groups | | "0" or "1" | "0" to hide nicklist groups, "1" to display nicklist groups. diff --git a/doc/en/weechat_user.en.adoc b/doc/en/weechat_user.en.adoc index 2d7e0f868..4f2a1bed6 100644 --- a/doc/en/weechat_user.en.adoc +++ b/doc/en/weechat_user.en.adoc @@ -946,7 +946,7 @@ Bar _input_ has following default items: There are two search modes: * search in lines, for example `[Search lines (~ str,msg)]`, with the following info: -** `~`: case insensitive +** `~`: case-insensitive ** `==`: case sensitive ** `str`: search string ** `regex`: search regular expression @@ -955,7 +955,7 @@ There are two search modes: ** `pre\|msg`: search in prefixes and messages. * search in commands history, for example `[Search command (~ str,local)]`, with the following info: -** `~`: case insensitive +** `~`: case-insensitive ** `==`: case sensitive ** `str`: search string ** `regex`: search regular expression @@ -1966,9 +1966,9 @@ These keys and actions are used on the IRC /list buffer (see command <]` | Scroll horizontally on the right. | `+/list -right+` | kbd:[Ctrl+j] | `j` | Join IRC channel on selected line. | `+/list -join+` -| | `xxx` | Show only channels with "xxx" in name or topic (case insensitive). | -| | `n:xxx` | Show only channels with "xxx" in name (case insensitive). | -| | `t:xxx` | Show only channels with "xxx" in topic (case insensitive). | +| | `xxx` | Show only channels with "xxx" in name or topic (case-insensitive). | +| | `n:xxx` | Show only channels with "xxx" in name (case-insensitive). | +| | `t:xxx` | Show only channels with "xxx" in topic (case-insensitive). | | | `u:n` | Show only channels with at least "n" users. | | | `u:>n` | Show only channels with more than "n" users. | | | `u:>) +| Is matching mask where "*" is allowed, case-insensitive (see function <<_string_match,string_match>>) | >> `+abc def =* A*F+` + == `+1+` + + @@ -2971,7 +2971,7 @@ from first used to last): == `+0+` | `+!*+` | 1.8 -| Is NOT wildcard mask where "*" is allowed, case insensitive (see function <<_string_match,string_match>>) +| Is NOT wildcard mask where "*" is allowed, case-insensitive (see function <<_string_match,string_match>>) | >> `+abc def !* A*F+` + == `+0+` + + @@ -2995,7 +2995,7 @@ from first used to last): == `+1+` | `+=-+` | 2.9 -| Is included, case insensitive +| Is included, case-insensitive | >> `+abc def =- BC+` + == `+1+` + + @@ -3003,7 +3003,7 @@ from first used to last): == `+0+` | `+!-+` | 2.9 -| Is NOT included, case insensitive +| Is NOT included, case-insensitive | >> `+abc def !- BC+` + == `+0+` + + @@ -15085,7 +15085,7 @@ Argomenti: // TRANSLATION MISSING * _name_: name of buffer, if it is NULL or empty string, the current buffer is returned (buffer displayed by current window); if the name starts with - `(?i)`, the search is case insensitive _(WeeChat ≥ 1.0)_ + `(?i)`, the search is case-insensitive _(WeeChat ≥ 1.0)_ Valore restituito: diff --git a/doc/it/weechat_user.it.adoc b/doc/it/weechat_user.it.adoc index 5d5db05f8..04afbeca0 100644 --- a/doc/it/weechat_user.it.adoc +++ b/doc/it/weechat_user.it.adoc @@ -1042,7 +1042,7 @@ There are two search modes: // TRANSLATION MISSING * search in lines, for example `[Search lines (~ str,msg)]`, with the following info: -** `~`: case insensitive +** `~`: case-insensitive ** `==`: case sensitive ** `str`: search string ** `regex`: search regular expression @@ -1051,7 +1051,7 @@ There are two search modes: ** `pre\|msg`: search in prefixes and messages. * search in commands history, for example `[Search command (~ str,local)]`, with the following info: -** `~`: case insensitive +** `~`: case-insensitive ** `==`: case sensitive ** `str`: search string ** `regex`: search regular expression @@ -2203,9 +2203,9 @@ These keys and actions are used on the IRC /list buffer (see command <]` | Scroll horizontally on the right. | `+/list -right+` | kbd:[Ctrl+j] | `j` | Join IRC channel on selected line. | `+/list -join+` -| | `xxx` | Show only channels with "xxx" in name or topic (case insensitive). | -| | `n:xxx` | Show only channels with "xxx" in name (case insensitive). | -| | `t:xxx` | Show only channels with "xxx" in topic (case insensitive). | +| | `xxx` | Show only channels with "xxx" in name or topic (case-insensitive). | +| | `n:xxx` | Show only channels with "xxx" in name (case-insensitive). | +| | `t:xxx` | Show only channels with "xxx" in topic (case-insensitive). | | | `u:n` | Show only channels with at least "n" users. | | | `u:>n` | Show only channels with more than "n" users. | | | `u:>) +| Is matching mask where "*" is allowed, case-insensitive (see function <<_string_match,string_match>>) | >> `+abc def =* A*F+` + == `+1+` + + @@ -2902,7 +2902,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio // TRANSLATION MISSING | `+!*+` | 1.8 -| Is NOT wildcard mask where "*" is allowed, case insensitive (see function <<_string_match,string_match>>) +| Is NOT wildcard mask where "*" is allowed, case-insensitive (see function <<_string_match,string_match>>) | >> `+abc def !* A*F+` + == `+0+` + + @@ -2929,7 +2929,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio // TRANSLATION MISSING | `+=-+` | 2.9 -| Is included, case insensitive +| Is included, case-insensitive | >> `+abc def =- BC+` + == `+1+` + + @@ -2938,7 +2938,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio // TRANSLATION MISSING | `+!-+` | 2.9 -| Is NOT included, case insensitive +| Is NOT included, case-insensitive | >> `+abc def !- BC+` + ==  `+0+` + + diff --git a/doc/ja/weechat_user.ja.adoc b/doc/ja/weechat_user.ja.adoc index 5669ffdcd..8ad156c48 100644 --- a/doc/ja/weechat_user.ja.adoc +++ b/doc/ja/weechat_user.ja.adoc @@ -2144,9 +2144,9 @@ These keys and actions are used on the IRC /list buffer (see command <]` | Scroll horizontally on the right. | `+/list -right+` | kbd:[Ctrl+j] | `j` | Join IRC channel on selected line. | `+/list -join+` -| | `xxx` | Show only channels with "xxx" in name or topic (case insensitive). | -| | `n:xxx` | Show only channels with "xxx" in name (case insensitive). | -| | `t:xxx` | Show only channels with "xxx" in topic (case insensitive). | +| | `xxx` | Show only channels with "xxx" in name or topic (case-insensitive). | +| | `n:xxx` | Show only channels with "xxx" in name (case-insensitive). | +| | `t:xxx` | Show only channels with "xxx" in topic (case-insensitive). | | | `u:n` | Show only channels with at least "n" users. | | | `u:>n` | Show only channels with more than "n" users. | | | `u: - two regular expressions are created: " "one for prefix and one for message"), - N_("> - regex are case insensitive, they can start by " + N_("> - regex are case-insensitive, they can start by " "\"(?-i)\" to become case sensitive"), "", N_("The default key alt+\"=\" toggles filtering on/off globally and " diff --git a/src/core/core-config.c b/src/core/core-config.c index d03d7cd8f..1a12be2d8 100644 --- a/src/core/core-config.c +++ b/src/core/core-config.c @@ -3627,7 +3627,7 @@ config_weechat_init_options () config_look_highlight = config_file_new_option ( weechat_config_file, weechat_config_section_look, "highlight", "string", - N_("comma separated list of words to highlight; case insensitive " + N_("comma separated list of words to highlight; case-insensitive " "comparison (use \"(?-i)\" at beginning of words to make them " "case sensitive), words may begin or end with \"*\" for partial " "match; example: \"test,(?-i)*toto*,flash*\""), @@ -3640,7 +3640,7 @@ config_weechat_init_options () "from a message: this option has higher priority over other " "highlight options (if the string is found in the message, the " "highlight is disabled and the other options are ignored), " - "regular expression is case insensitive (use \"(?-i)\" at " + "regular expression is case-insensitive (use \"(?-i)\" at " "beginning to make it case sensitive), examples: " "\"\", \"(?-i)\""), NULL, 0, 0, "", NULL, 0, @@ -3662,7 +3662,7 @@ config_weechat_init_options () N_("POSIX extended regular expression used to check if a message " "has highlight or not, at least one match in string must be " "surrounded by delimiters (chars different from: alphanumeric, " - "\"-\", \"_\" and \"|\"), regular expression is case insensitive " + "\"-\", \"_\" and \"|\"), regular expression is case-insensitive " "(use \"(?-i)\" at beginning to make it case sensitive), " "examples: \"flashcode|flashy\", \"(?-i)FlashCode|flashy\""), NULL, 0, 0, "", NULL, 0, @@ -3672,7 +3672,7 @@ config_weechat_init_options () config_look_highlight_tags = config_file_new_option ( weechat_config_file, weechat_config_section_look, "highlight_tags", "string", - N_("comma separated list of tags to highlight; case insensitive " + N_("comma separated list of tags to highlight; case-insensitive " "comparison; wildcard \"*\" is allowed in each tag; many tags " "can be separated by \"+\" to make a logical \"and\" between " "tags; examples: \"nick_flashcode\" for messages from nick " @@ -3794,11 +3794,11 @@ config_weechat_init_options () "a hdata variable of hotlist (\"var\") or a hdata variable of " "buffer (\"buffer.var\"); " "char \"-\" can be used before field to reverse order, " - "char \"~\" can be used to do a case insensitive comparison; " + "char \"~\" can be used to do a case-insensitive comparison; " "examples: " "\"-priority,buffer.number\" for sort on hotlist priority then by " "buffer number, " - "\"-~buffer.full_name\" for case insensitive and reverse " + "\"-~buffer.full_name\" for case-insensitive and reverse " "sort on buffer full name"), NULL, 0, 0, "-priority,time,time_usec", NULL, 0, NULL, NULL, NULL, diff --git a/src/core/core-list.c b/src/core/core-list.c index 62826d982..d70142b14 100644 --- a/src/core/core-list.c +++ b/src/core/core-list.c @@ -215,7 +215,7 @@ weelist_search_pos (struct t_weelist *weelist, const char *data) } /* - * Searches for data in a list (case insensitive). + * Searches for data in a list (case-insensitive). * * Returns pointer to item found, NULL if not found. */ @@ -239,7 +239,7 @@ weelist_casesearch (struct t_weelist *weelist, const char *data) } /* - * Searches for data in a list (case insensitive). + * Searches for data in a list (case-insensitive). * * Returns position of item found (>= 0), -1 if not found. */ diff --git a/src/core/core-string.c b/src/core/core-string.c index 8b8512239..2b6a419e2 100644 --- a/src/core/core-string.c +++ b/src/core/core-string.c @@ -532,7 +532,7 @@ string_charcmp (const char *string1, const char *string2) } /* - * Compares two chars (case insensitive). + * Compares two chars (case-insensitive). * * Returns: arithmetic result of subtracting the first UTF-8 char in string2 * (converted to lowercase) from the first UTF-8 char in string1 (converted @@ -571,7 +571,7 @@ string_charcasecmp (const char *string1, const char *string2) } /* - * Compares two chars (case insensitive using a range). + * Compares two chars (case-insensitive using a range). * * The range is the number of chars which can be converted from upper to lower * case. For example 26 = all letters of alphabet, 29 = all letters + 3 chars. @@ -680,7 +680,7 @@ string_strncmp (const char *string1, const char *string2, int max) } /* - * Compares two strings (case insensitive). + * Compares two strings (case-insensitive). * * Returns: arithmetic result of subtracting the last compared UTF-8 char in * string2 (converted to lowercase) from the last compared UTF-8 char in @@ -715,7 +715,7 @@ string_strcasecmp (const char *string1, const char *string2) } /* - * Compares two strings (case insensitive using a range). + * Compares two strings (case-insensitive using a range). * * The range is the number of chars which can be converted from upper to lower * case. For example 26 = all letters of alphabet, 29 = all letters + 3 chars. @@ -759,7 +759,7 @@ string_strcasecmp_range (const char *string1, const char *string2, int range) } /* - * Compares two strings with max length (case insensitive). + * Compares two strings with max length (case-insensitive). * * Returns: arithmetic result of subtracting the last compared UTF-8 char in * string2 (converted to lowercase) from the last compared UTF-8 char in @@ -799,7 +799,7 @@ string_strncasecmp (const char *string1, const char *string2, int max) } /* - * Compares two strings with max length (case insensitive using a range). + * Compares two strings with max length (case-insensitive using a range). * * The range is the number of chars which can be converted from upper to lower * case. For example 26 = all letters of alphabet, 29 = all letters + 3 chars. @@ -1638,7 +1638,7 @@ string_mask_to_regex (const char *mask) * Format of flags is: (?eins-eins)string * Flags are: * e: POSIX extended regex (REG_EXTENDED) - * i: case insensitive (REG_ICASE) + * i: case-insensitive (REG_ICASE) * n: match-any-character operators don't match a newline (REG_NEWLINE) * s: support for substring addressing of matches is not required (REG_NOSUB) * diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index b7ac8639b..1f51cd42e 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -2995,7 +2995,7 @@ gui_buffer_search_by_id (long long id) * Searches for a buffer by full name (example: "irc.libera.#weechat"). * * If full_name starts with "(?i)", the search starts after this string - * and the search is case insensitive. + * and the search is case-insensitive. */ struct t_gui_buffer * @@ -3111,7 +3111,7 @@ gui_buffer_search (const char *plugin, const char *name) * Searches for a buffer by plugin and partial name. * * If plugin or name starts with "(?i)", the search starts after this string - * and the search is case insensitive. + * and the search is case-insensitive. */ struct t_gui_buffer * diff --git a/src/plugins/buflist/buflist-config.c b/src/plugins/buflist/buflist-config.c index 31994d1cf..03e039642 100644 --- a/src/plugins/buflist/buflist-config.c +++ b/src/plugins/buflist/buflist-config.c @@ -602,8 +602,8 @@ buflist_config_init () "IRC server (\"irc_server.var\") or a hdata variable of " "IRC channel (\"irc_channel.var\"); " "char \"-\" can be used before field to reverse order, " - "char \"~\" can be used to do a case insensitive comparison; " - "examples: \"-~short_name\" for case insensitive and reverse " + "char \"~\" can be used to do a case-insensitive comparison; " + "examples: \"-~short_name\" for case-insensitive and reverse " "sort on buffer short name, " "\"-hotlist.priority,hotlist.time,hotlist.time_usec,number,-active\" " "for sort like the hotlist then by buffer number for buffers " diff --git a/src/plugins/fset/fset-config.c b/src/plugins/fset/fset-config.c index dbff08b8c..93d8683d8 100644 --- a/src/plugins/fset/fset-config.c +++ b/src/plugins/fset/fset-config.c @@ -466,8 +466,8 @@ fset_config_init () "sort", "string", N_("comma-separated list of fields to sort options (see /help fset " "for a list of fields); char \"-\" can be used before field to " - "reverse order, char \"~\" can be used to do a case insensitive " - "comparison; example: \"-~name\" for case insensitive and " + "reverse order, char \"~\" can be used to do a case-insensitive " + "comparison; example: \"-~name\" for case-insensitive and " "reverse sort on option name"), NULL, 0, 0, "~name", NULL, 0, NULL, NULL, NULL, diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index 2dffd3083..400d2b218 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -7553,7 +7553,7 @@ irc_command_init () N_("raw[-raw]: display result on server buffer instead of a " "dedicated buffer"), N_("regex: POSIX extended regular expression used to filter results " - "(case insensitive, can start by \"(?-i)\" to become case " + "(case-insensitive, can start by \"(?-i)\" to become case " "sensitive); the special value \"*\" doesn't filter results"), N_("raw[-up]: move the selected line up by \"number\" lines"), N_("raw[-down]: move the selected line down by \"number\" lines"), @@ -7590,7 +7590,7 @@ irc_command_init () AI(" n:weechat"), N_(" channels with at least 100 users:"), AI(" u:100"), - N_(" channels with \"freebsd\" (case insensitive) in topic and more than 10 users:"), + N_(" channels with \"freebsd\" (case-insensitive) in topic and more than 10 users:"), AI(" c:${topic} =- freebsd && ${users} > 10"), N_(" sort channels by users (big channels first), then name2 (name without prefix):"), AI(" s:-users,name2")), diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c index 119704e22..1fba7a78a 100644 --- a/src/plugins/irc/irc-config.c +++ b/src/plugins/irc/irc-config.c @@ -3415,7 +3415,7 @@ irc_config_init () irc_config_file, irc_config_section_look, "highlight_channel", "string", N_("comma separated list of words to highlight in channel buffers " - "(case insensitive, use \"(?-i)\" at beginning of words to " + "(case-insensitive, use \"(?-i)\" at beginning of words to " "make them case sensitive; special variables $nick, $channel and " "$server are replaced by their values), these words are added to " "buffer property \"highlight_words\" only when buffer is created " @@ -3427,7 +3427,7 @@ irc_config_init () irc_config_file, irc_config_section_look, "highlight_pv", "string", N_("comma separated list of words to highlight in private buffers " - "(case insensitive, use \"(?-i)\" at beginning of words to " + "(case-insensitive, use \"(?-i)\" at beginning of words to " "make them case sensitive; special variables $nick, $channel and " "$server are replaced by their values), these words are added to " "buffer property \"highlight_words\" only when buffer is created " @@ -3439,7 +3439,7 @@ irc_config_init () irc_config_file, irc_config_section_look, "highlight_server", "string", N_("comma separated list of words to highlight in server buffers " - "(case insensitive, use \"(?-i)\" at beginning of words to " + "(case-insensitive, use \"(?-i)\" at beginning of words to " "make them case sensitive; special variables $nick, $channel and " "$server are replaced by their values), these words are added to " "buffer property \"highlight_words\" only when buffer is created " @@ -3543,9 +3543,9 @@ irc_config_init () "list_buffer_sort", "string", N_("comma-separated list of fields to sort channels (see /help list " "for a list of fields); char \"-\" can be used before field to " - "reverse order, char \"~\" can be used to do a case insensitive " + "reverse order, char \"~\" can be used to do a case-insensitive " "comparison; example: \"-count,~name\" for biggest channels " - "first then case insensitive sort on name"), + "first then case-insensitive sort on name"), NULL, 0, 0, "~name2", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, @@ -3639,7 +3639,7 @@ irc_config_init () irc_config_file, irc_config_section_look, "notice_nicks_disable_notify", "string", N_("comma separated list of nicks for which notifications are " - "disabled in notice messages (comparison is case insensitive)"), + "disabled in notice messages (comparison is case-insensitive)"), NULL, 0, 0, "chanserv,nickserv", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, diff --git a/src/plugins/irc/irc-join.c b/src/plugins/irc/irc-join.c index 9fed8e39b..14ae83386 100644 --- a/src/plugins/irc/irc-join.c +++ b/src/plugins/irc/irc-join.c @@ -442,7 +442,7 @@ end: * Checks if a channel is in a join string. * * Returns: - * 1: channel found in join string (case insensitive comparison) + * 1: channel found in join string (case-insensitive comparison) * 0: channel NOT found in join string */ diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index fdfd2a6bc..798919b1a 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -289,7 +289,7 @@ irc_server_search_utf8mapping (const char *utf8mapping) } /* - * Compares two strings on server (case insensitive, depends on casemapping). + * Compares two strings on server (case-insensitive, depends on casemapping). * * Returns: * < 0: string1 < string2 @@ -313,7 +313,7 @@ irc_server_strcasecmp (struct t_irc_server *server, } /* - * Compares two strings on server (case insensitive, depends on casemapping) + * Compares two strings on server (case-insensitive, depends on casemapping) * for max chars. * * Returns: diff --git a/src/plugins/relay/relay-config.c b/src/plugins/relay/relay-config.c index 3c46dc700..dc6792f38 100644 --- a/src/plugins/relay/relay-config.c +++ b/src/plugins/relay/relay-config.c @@ -1582,7 +1582,7 @@ relay_config_init () relay_config_file, relay_config_section_network, "allowed_ips", "string", N_("POSIX extended regular expression with IPs allowed to use relay " - "(case insensitive, use \"(?-i)\" at beginning to make it case " + "(case-insensitive, use \"(?-i)\" at beginning to make it case " "sensitive), example: " "\"^(123\\.45\\.67\\.89|192\\.160\\..*)$\""), NULL, 0, 0, "", NULL, 0, @@ -1759,7 +1759,7 @@ relay_config_init () relay_config_file, relay_config_section_network, "websocket_allowed_origins", "string", N_("POSIX extended regular expression with origins allowed in " - "websockets (case insensitive, use \"(?-i)\" at beginning to " + "websockets (case-insensitive, use \"(?-i)\" at beginning to " "make it case sensitive), example: " "\"^https?://(www\\.)?example\\.(com|org)\""), NULL, 0, 0, "", NULL, 0, diff --git a/tests/unit/gui/test-gui-hotlist.cpp b/tests/unit/gui/test-gui-hotlist.cpp index cd5fe5162..1576eb032 100644 --- a/tests/unit/gui/test-gui-hotlist.cpp +++ b/tests/unit/gui/test-gui-hotlist.cpp @@ -384,7 +384,7 @@ TEST(GuiHotlist, Resort) POINTERS_EQUAL(buffer_test[1], gui_hotlist->next_hotlist->next_hotlist->buffer); POINTERS_EQUAL(NULL, gui_hotlist->next_hotlist->next_hotlist->next_hotlist); - /* sort by buffer name (case insensitive) */ + /* sort by buffer name (case-insensitive) */ config_file_option_set (config_look_hotlist_sort, "~buffer.name", 1); POINTERS_EQUAL(buffer_test[0], gui_hotlist->buffer); POINTERS_EQUAL(buffer_test[1], gui_hotlist->next_hotlist->buffer);