@@ -1085,25 +1085,27 @@ x A single character, with no special meaning, matches itself
10851085 - A character class expression is evaluated to the set of characters
10861086 belonging to that character class. The following character classes
10871087 are supported:
1088- Name Contents ~
1089- *[:alnum:]* [:alnum:] ASCII letters and digits
1090- *[:alpha:]* [:alpha:] ASCII letters
1091- *[:blank:]* [:blank:] space and tab characters
1092- *[:cntrl:]* [:cntrl:] control characters
1093- *[:digit:]* [:digit:] decimal digits
1094- *[:graph:]* [:graph:] printable characters excluding space
1095- *[:lower:]* [:lower:] lowercase letters (all letters when
1088+ Name Func Contents ~
1089+ *[:alnum:]* [:alnum:] isalnum ASCII letters and digits
1090+ *[:alpha:]* [:alpha:] isalpha ASCII letters
1091+ *[:blank:]* [:blank:] space and tab
1092+ *[:cntrl:]* [:cntrl:] iscntrl ASCII control characters
1093+ *[:digit:]* [:digit:] decimal digits '0' to '9'
1094+ *[:graph:]* [:graph:] isgraph ASCII printable characters excluding
1095+ space
1096+ *[:lower:]* [:lower:] (1) lowercase letters (all letters when
10961097 'ignorecase' is used)
1097- *[:print:]* [:print:] printable characters including space
1098- *[:punct:]* [:punct:] ASCII punctuation characters
1099- *[:space:]* [:space:] whitespace characters
1100- *[:upper:]* [:upper:] uppercase letters (all letters when
1098+ *[:print:]* [:print:] (2) printable characters including space
1099+ *[:punct:]* [:punct:] ispunct ASCII punctuation characters
1100+ *[:space:]* [:space:] whitespace characters: space, tab, CR,
1101+ NL, vertical tab, form feed
1102+ *[:upper:]* [:upper:] (3) uppercase letters (all letters when
11011103 'ignorecase' is used)
1102- *[:xdigit:]* [:xdigit:] hexadecimal digits
1103- *[:return:]* [:return:] the <CR> character
1104- *[:tab:]* [:tab:] the <Tab> character
1105- *[:escape:]* [:escape:] the <Esc> character
1106- *[:backspace:]* [:backspace:] the <BS> character
1104+ *[:xdigit:]* [:xdigit:] hexadecimal digits: 0-9, a-f, A-F
1105+ *[:return:]* [:return:] the <CR> character
1106+ *[:tab:]* [:tab:] the <Tab> character
1107+ *[:escape:]* [:escape:] the <Esc> character
1108+ *[:backspace:]* [:backspace:] the <BS> character
11071109 The brackets in character class expressions are additional to the
11081110 brackets delimiting a collection. For example, the following is a
11091111 plausible pattern for a UNIX filename: "[-./[:alnum:]_~]\+" That is,
@@ -1114,6 +1116,13 @@ x A single character, with no special meaning, matches itself
11141116 regexp engine. See | two-engines | . In the future these items may
11151117 work for multi-byte characters. For now, to get all "alpha"
11161118 characters you can use: [[:lower:][:upper:]].
1119+
1120+ The "Func" column shows what library function is used. The
1121+ implementation depends on the system. Otherwise:
1122+ (1) Uses islower() for ASCII and Vim builtin rules for other
1123+ characters when built with the | +multi_byte | feature.
1124+ (2) Uses Vim builtin rules
1125+ (3) As with (1) but using isupper()
11171126 */[[=* *[==]*
11181127 - An equivalence class. This means that characters are matched that
11191128 have almost the same meaning, e.g., when ignoring accents. This
0 commit comments