名前空間
変種
操作

Strings library

提供: cppreference.com
< cpp


 
 
ストリングスライブラリ
NULLで終わる文字列
Original:
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.
バイト文字列
文字列をマルチバイト
ワイド文字列
クラス
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_string
char_traits
 
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.
  • 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.
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.
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.
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.

[編集] 追加サポート

[編集] 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.
Defined in header <string>
template<> class char_traits<std::string>;

template<> class char_traits<std::wstring>;
template<> class char_traits<std::u16string>;

template<> class char_traits<std::u32string>;


(C + + 11以来)
(C + + 11以来)