Strings library
提供: cppreference.com
< cpp
![]() | このページは、Google 翻訳を使って英語版から機械翻訳されました。 翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
C + +文字列ライブラリは文字列の2つの一般的なタイプのサポートが含まれています
Original:
The C++ strings library includes support for two general types of strings:
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.
- std::basic_string - 任意の文字型の文字列を操作するように設計テンプレートクラス.Original:std::basic_string - a templated class designed to manipulate strings of any character type.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - NULLで終わる文字列 - 特別な'ヌル文字で終わる文字配列.Original:Null-terminated strings - arrays of characters terminated by a special null character.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
目次 |
[編集]std::basic_string
テンプレート化されたクラスstd::basic_stringは、文字のシーケンスが操作され、どのように格納されるか一般化します。文字列の作成、操作、および破壊が全てのクラスメソッドとそれに関連する関数の便利なセットによって処理されます.
Original:
The templated class std::basic_string generalizes how sequences of characters are manipulated and stored. String creation, manipulation, and destruction are all handled by a convenient set of class methods and related functions.
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.
std::basic_stringのいくつかの専門分野は、一般的に使用されるタイプのために提供されています
Original:
Several specializations of std::basic_string are provided for commonly-used types:
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.
Defined in header <string> | |
タイプ Original: Type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | Definition |
std::string | std::basic_string<char> |
std::wstring | std::basic_string<wchar_t> |
std::u16string | std::basic_string<char16_t> |
std::u32string | std::basic_string<char32_t> |
[編集]NULLで終わる文字列
NULLで終わる文字列は特別な'ヌル文字で終端された文字の配列です。 C + +で作成、検査、およびNULLで終わる文字列を修正する機能を提供します.
Original:
Null-terminated strings are arrays of characters that are terminated by a special null character. C++ provides functions to create, inspect, and modify null-terminated strings.
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.
NULLで終わる文字列の3種類があります
Original:
There are three types of null-terminated strings:
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.
- <div class="t-tr-text"> NULL終端バイト文字列</div>Original:null-terminated byte stringsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions. - <div class="t-tr-text"> NULLで終わるマルチバイト文字列</div>Original:null-terminated multibyte stringsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions. - <div class="t-tr-text"> nullで終了するワイド文字列</div>Original:null-terminated wide stringsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.
[編集]追加サポート
[編集] char_traits
文字列ライブラリはまた
char_traits
ための型と関数を定義したクラステンプレートstd::basic_stringを提供しています。以下の専門が定義されていますOriginal:
The string library also provides class template
char_traits
that defines types and functions for std::basic_string. The following specializations are defined: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.
Defined in header <string> | ||
template<>class char_traits<std::string>; template<>class char_traits<std::wstring>; | (C++11およびそれ以降) (C++11およびそれ以降) | |