cpp/string/basic string/resize: Unterschied zwischen den Versionen
Aus cppreference.com
< cpp | string | basic string
P12 (Diskussion | Beiträge) K (1 Version: Translate from the English version) |
P12bot (Diskussion | Beiträge) K (Use {{lc}}. Update links. Various fixes.) |
||
(3 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
+ | |||
{{cpp/string/basic_string/title | resize}} | {{cpp/string/basic_string/title | resize}} | ||
{{cpp/string/basic_string/navbar}} | {{cpp/string/basic_string/navbar}} | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| num=1 | |
void resize( size_type count ); | void resize( size_type count ); | ||
}} | }} | ||
− | {{ | + | {{| num=2 | |
void resize( size_type count, CharT ch ); | void resize( size_type count, CharT ch ); | ||
}} | }} | ||
− | {{ | + | {{end}} |
{{tr|Ändert die Zeichenfolge {{tt|count}} Zeichen enthalten .|Resizes the string to contain {{tt|count}} characters.}} | {{tr|Ändert die Zeichenfolge {{tt|count}} Zeichen enthalten .|Resizes the string to contain {{tt|count}} characters.}} | ||
Zeile 19: | Zeile 20: | ||
===Parameter=== | ===Parameter=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| count |{{tr| neue Größe des Strings| new size of the string}}}} |
− | {{ | + | {{| ch |{{tr| Charakter, um die neuen Zeichen mit initialisieren | character to initialize the new characters with }}}} |
− | {{ | + | {{end}} |
===Rückgabewert=== | ===Rückgabewert=== | ||
Zeile 31: | Zeile 32: | ||
===Siehe auch=== | ===Siehe auch=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| cpp/string/basic_string/size}} |
− | {{ | + | {{end}} |
+ | |||
+ | |||
+ | |||
+ | |||
[[ja:cpp/string/basic string/resize]] | [[ja:cpp/string/basic string/resize]] | ||
[[pt:cpp/string/basic string/resize]] | [[pt:cpp/string/basic string/resize]] | ||
[[ru:cpp/string/basic string/resize]] | [[ru:cpp/string/basic string/resize]] | ||
+ |
Aktuelle Version vom 1. Juli 2013, 20:47 Uhr
![]() |
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. |
void resize( size_type count ); |
(1) | |
void resize( size_type count, CharT ch ); |
(2) | |
Ändert die Zeichenfolge
count
Zeichen enthalten .Original:
Resizes the string to contain
count
characters.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.
Wenn die aktuelle Größe kleiner als
count
werden zusätzliche Zeichen angehängt .Original:
If the current size is less than
count
, additional characters are appended.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.
Wenn die aktuelle Größe ist größer als
count
, wird die Zeichenfolge in der ersten count
Elemente reduziert .Original:
If the current size is greater than
count
, the string is reduced to its first count
elements.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.
Die erste Version initialisiert neue Zeichen CharT(), initialisiert die zweite Version neue Charaktere
ch
.Original:
The first version initializes new characters to CharT(), the second version initializes new characters to
ch
.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.
Inhaltsverzeichnis |
[Bearbeiten] Parameter
count | - | neue Größe des Strings
Original: new size of the string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
ch | - | Charakter, um die neuen Zeichen mit initialisieren
Original: character to initialize the new characters with The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[Bearbeiten] Rückgabewert
(None)
Original:
(none)
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.
[Bearbeiten] Komplexität
linear in der Größe der Zeichenfolge
Original:
linear in the size of the string
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.
[Bearbeiten] Siehe auch
gibt die Anzahl Zeichen zurück (öffentliche Elementfunktion) |