Null-terminated wide strings
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
宽以null结尾的字符串是一个有效的宽字符序列,一个空字符结束.
Original:
A null-terminated wide string is a sequence of valid wide characters, ending with a null-character.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 功能
Original: Character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Defined in header
<wctype.h> | |
| 检查是否使用了一个宽字符是字母数字 Original: checks if a wide character is alphanumeric The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 检查是否使用了一个宽字符是字母 Original: checks if a wide character is alphabetic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 检查是否使用了一个宽字符是小写字符 Original: checks if a wide character is an lowercase character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 检查是否使用了一个宽字符是一个大写字符 Original: checks if a wide character is an uppercase character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 检查是否使用了一个宽字符是一个数字 Original: checks if a wide character is a digit The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 检查,如果一个字符是十六进制的字符 Original: checks if a character is a hexadecimal character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 检查,如果一个宽字符是一个控制字符 Original: checks if a wide character is a control character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 一个宽字符的检查,如果是一个图形字符 Original: checks if a wide character is a graphical character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 检查是否使用了一个宽字符是一个空格字符 Original: checks if a wide character is a space character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| (C99) |
检查是否使用了一个宽字符是一个空字符 Original: checks if a wide character is a blank character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
| 检查是否使用了一个宽字符的打印字符 Original: checks if a wide character is a printing character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 一个宽字符的检查,如果是一个标点符号 Original: checks if a wide character is a punctuation character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 一个宽字符分类到指定的LC_CTYPE类别 Original: classifies a wide character according to the specified LC_CTYPE category The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 在当前的C语言环境字符类别划分 Original: looks up a character classification category in the current C locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
Original: Character manipulation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Defined in header
<wctype.h> | |
| 一个宽字符转换为小写 Original: converts a wide character to lowercase The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 一个宽字符转换为大写 Original: converts a wide character to uppercase The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 执行字符映射根据指定LC_CTYPE测绘的类别 Original: performs character mapping according to the specified LC_CTYPE mapping category The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 在当前的C语言环境中查找字符映射类 Original: looks up a character mapping category in the current C locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| ASCII values (hex) |
characters | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 - 8 | 0x00-0x08
|
control codes (NUL, etc.)
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 9 | 0x09
|
tab (\t)
|
≠0
|
0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 10 - 13 | 0x0A-0x0D
|
whitespaces (\n,\v,\f,\r)
|
≠0
|
0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 14 - 31 | 0x0E-0x1F
|
control codes | ≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 32 | 0x20
|
space | 0
|
≠0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 33 - 47 | 0x21-0x2F
|
!"#$%&'()*+,-./
|
0
|
≠0
|
0
|
0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 48 - 57 | 0x30-0x39
|
0123456789
|
0
|
≠0
|
0
|
0
|
≠0
|
0
|
≠0
|
0
|
0
|
0
|
≠0
|
≠0
|
| 58 - 64 | 0x3a-0x40
|
:;<=>?@
|
0
|
≠0
|
0
|
0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 65 - 70 | 0x41-0x46
|
ABCDEF
|
0
|
≠0
|
0
|
0
|
≠0
|
0
|
≠0
|
≠0
|
≠0
|
0
|
0
|
≠0
|
| 71 - 90 | 0x47-0x5A
|
GHIJKLMNOPQRSTUVWXYZ
|
0
|
≠0
|
0
|
0
|
≠0
|
0
|
≠0
|
≠0
|
≠0
|
0
|
0
|
0
|
| 91 - 96 | 0x5B-0x60
|
[\]^_`
|
0
|
≠0
|
0
|
0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 97 -102 | 0x61-0x66
|
abcdef
|
0
|
≠0
|
0
|
0
|
≠0
|
0
|
≠0
|
≠0
|
0
|
≠0
|
0
|
≠0
|
| 103-122 | 0x67-0x7A
|
ghijklmnopqrstuvwxyz
|
0
|
≠0
|
0
|
0
|
≠0
|
0
|
≠0
|
≠0
|
0
|
≠0
|
0
|
0
|
| 123-126 | 0x7B-0x7E
|
{|}~
|
0
|
≠0
|
0
|
0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 127 | 0x7F
|
backspace character (DEL)
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
Original: Conversions to numeric formats The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Defined in header
<wchar.h> | |
| 宽字符串转换为整数的值 Original: converts a wide string to an integer value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 宽字符串转换为无符号整数的值 Original: converts a wide string to an unsigned integer value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 宽字符串转换为浮点值 Original: converts a wide string to a floating point value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| Defined in header
<inttypes.h> | |
| (C99) (C99) |
宽字符串转换intmax_t或uintmax_t Original: The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
Original: String manipulation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Defined in header
<wchar.h> | |
| 一个宽字符串复制到另一个地方 Original: copies one wide string to another The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 一定量的宽字符复制到另一个从一个字符串 Original: copies a certain amount of wide characters from one string to another The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 一个宽字符串的副本追加到另一个地方 Original: appends a copy of one wide string to another The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 添加一定量的宽字符从一个宽字符串到另一个 Original: appends a certain amount of wide characters from one wide string to another The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 变换宽字符串,wcscmp会产生相同的结果wcscoll的 Original: transform a wide string so that wcscmp would produce the same result as wcscoll The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
Original: String examination The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Defined in header
<wchar.h> | |
| 返回一个宽字符串的长度 Original: returns the length of a wide string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 比较两个宽字符串 Original: compares two wide strings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 一定量的字符进行比较从两个宽字符串 Original: compares a certain amount of characters from two wide strings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 比较两个宽字符串,按照目前的语言环境 Original: compares two wide strings in accordance to the current locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 发现一个宽字符在宽字符串中首次出现的 Original: finds the first occurrence of a wide character in a wide string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 发现一个宽字符在宽字符串中最后一次出现 Original: finds the last occurrence of a wide character in a wide string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 返回的长度的最大的初始段,由 只有宽字符宽字符串在另一个发现 Original: returns the length of the maximum initial segment that consists of only the wide characters found in another wide string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 返回的长度的最大的初始段,由只有宽 不发现在另一个宽字符串 Original: returns the length of the maximum initial segment that consists of only the wide not found in another wide string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 发现任何宽字符的第一个位置,在一个宽的字符串,在另一个宽字符串 Original: finds the first location of any wide character in one wide string, in another wide string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 发现第一次出现在另一个宽字符串宽字符串 Original: finds the first occurrence of a wide string within another wide string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 在宽字符串中查找下一个标记 Original: finds the next token in a wide string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
Original: Wide character array manipulation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Defined in header
<wchar.h> | |
| 复制宽字符两个非重叠的阵列之间的一定量的 Original: copies a certain amount of wide characters between two non-overlapping arrays The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 复制了一定的宽字符之间可能有重叠,数组 Original: copies a certain amount of wide characters between two, possibly overlapping, arrays The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 比较一定量的宽字符从两个数组 Original: compares a certain amount of wide characters from two arrays The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 发现一个宽字符在一个宽字符数组中第一次出现 Original: finds the first occurrence of a wide character in a wide character array The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 在一个宽字符数组中的每一个位置给定的宽字符复制 Original: copies the given wide character to every position in a wide character array The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
[编辑] 类型
| Defined in header
<wctype.h> | |
wctrans_t
|
标量类型,持有特定于语言环境的字符映射
Original: scalar type that holds locale-specific character mapping The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
wctype_t
|
标量类型,持有特定于语言环境的字符分类
Original: scalar type that holds locale-specific character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
wint_t
|
整数类型,可以持有任何有效的宽字符和至少一个或多个值
Original: integer type that can hold any valid wide character and at least one more value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 宏
| Defined in header
<wchar.h> | |
| WEOF |
非字符的值,用来表示错误的类型wint_t Original: a non-character value of type wint_t used to indicate errors The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (宏不变) |
| WCHAR_MIN |
最小的有效价值为wchar_t Original: the smallest valid value of wchar_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (宏不变) |
| WCHAR_MAX |
为wchar_t的最大有效值 Original: the largest valid value of wchar_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (宏不变) |