Strings library
Aus cppreference.com
< cpp
[] |
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. |
Die C++-Strings Bibliothek bietet Untersttzung fr zwei allgemeine Arten von Strings:
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 - ein Klassen-Template, um Zeichenketten beliebiger Zeichentypen zu verarbeiten.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-terminierte Strings - Arrays von Zeichen, die durch ein spezielles null Zeichen abgeschlossen sind.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
Das Klassen-Template std::basic_string bietet Standardmethoden und zugehrige Funktionen, mit denen Zeichenfolgen erstellt, manipuliert und wieder zerstrt werden knnen.
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.
Mehrere Spezialisierungen std::basic_string sind fr hufig verwendete Typen zur Verfgung:
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.
definiert in Header
<string> | |
Type
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-terminierte Strings
Null-terminierte Strings sind Arrays von Zeichen, die durch ein spezielles null Zeichen abgeschlossen werden. C + + bietet Funktionen zum Erstellen, berprfen und ndern von null-terminierten Strings .
Es gibt drei Arten von Null-terminierten Strings:
- nullterminierten Byte-StringsOriginal: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. - nullterminierten Multibyte StringsOriginal: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. - nullterminierten Wide StringsOriginal: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.
Zustzliche Untersttzung
char_traits
Die String-Bibliothek bietet auch Klassen-Template
<tbody>
</tbody>char_traits, die Typen und Funktionen definiert fr std::basic_string. Die folgenden Spezialisierungen sind definiert: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.
| definiert 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>; |
(seit C++11) (seit C++11) |
|