Null-terminated byte strings
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
NULL終端バイト文字列(NTBS)の値がゼロバイト(終端のNULL文字)が続くゼロ以外のバイトのシーケンスです。バイト文字列の各バイトは、いくつかの文字セットの1文字をエンコードします。たとえば、文字配列{'\x63','\x61','\x74','\0'}はASCIIエンコーディングで文字列を保持して"cat"NTBSです.
Original:
A null-terminated byte string (NTBS) is a sequence of nonzero bytes followed by a byte with value zero (the terminating null character). Each byte in a byte string encodes one character of some character set. For example, the character array {'\x63','\x61','\x74','\0'} is an NTBS holding the string "cat" in ASCII encoding.
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
<cctype> | |
文字かどうかをチェックするには、英数字です Original: checks if a 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 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 character is lowercase 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 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 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. (関数) | |
文字が16進文字であるかどうかをチェック 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 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 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 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. (関数) | |
(C++11) |
文字かどうかをチェックするには、空白文字です Original: checks if a 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 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 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. (関数) | |
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. | |
文字を小文字に変換します Original: converts a 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 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. (関数) |
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
<cstdlib> | |
浮動小数点値をバイト文字列に変換します Original: converts a byte 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. (関数) | |
整数値をバイト文字列に変換します Original: converts a byte 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 byte 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 byte 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 byte 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
<cinttypes> | |
(C++11) (C++11) |
std::intmax_tまたはstd::uintmax_tにバイト文字列に変換します Original: converts a byte string to std::intmax_t or std::uintmax_t 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
<cstring> | |
別の文字列をコピーします Original: copies 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. (関数) | |
1つの文字列から別の文字の一定量をコピーします Original: copies a certain amount of 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. (関数) | |
2つの文字列を連結します Original: concatenates two strings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
2つの文字列を連結した文字の特定の量 Original: concatenates a certain amount of characters of two strings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
strcmp関数はstrcoll関数と同じ結果を生成するように文字列を変換します Original: transform a string so that strcmp would produce the same result as strcoll 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
<cstring> | |
与えられた文字列の長さを返します Original: returns the length of a given string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
2つの文字列を比較する Original: compares two 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 of two strings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
現在のロケールに応じた2つの文字列を比較する Original: compares two 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 character 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 character 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 characters found in another byte 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 characters not found in another byte string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
別の文字列の1つの文字列内の任意の文字の最初の場所を見つけます Original: finds the first location of any character in one string, in another 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 substring of characters 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 byte string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
Original: 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
<cstring> | |
文字が最初に出現するための配列を検索します Original: searches an array for the first occurrence of a character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
2つのバッファを比較します Original: compares two buffers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
文字でバッファを埋めます Original: fills a buffer with a character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
別のバッファにコピーします Original: copies one buffer 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: moves one buffer 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: Miscellaneous 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
<cstring> | |
指定したエラーコードのテキストバージョンを返します Original: returns a text version of a given error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) |