cpp/string/basic string/replace : Différence entre versions
P12 (discuter | contributions) m (1 version : Translate from the English version) |
m (r2.7.3) (robot Ajoute : de, en, es, it, zh) |
||
Ligne 106 : | Ligne 106 : | ||
}} | }} | ||
+ | |||
+ | |||
+ | |||
+ | |||
[[ja:cpp/string/basic string/replace]] | [[ja:cpp/string/basic string/replace]] | ||
[[pt:cpp/string/basic string/replace]] | [[pt:cpp/string/basic string/replace]] | ||
[[ru:cpp/string/basic string/replace]] | [[ru:cpp/string/basic string/replace]] | ||
+ |
Version du 2 novembre 2012 à 11:07
![]() |
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. |
basic_string& replace( size_type pos, size_type count, const basic_string& str ); |
(1) | |
basic_string& replace( size_type pos, size_type count, const basic_string& str, |
(2) | |
basic_string& replace( size_type pos, size_type count, const CharT* cstr, size_type count2 ); |
(3) | |
basic_string& replace( size_type pos, size_type count, const CharT* cstr ); |
(4) | |
basic_string& replace( size_type pos, size_type count, size_type count2, CharT ch ); |
(5) | |
basic_string& replace( const_iterator first, const_iterator last, std::initializer_list<CharT> ilist ); |
(6) | (depuis C++11) |
[pos, pos + count)
ou [first, last)
par une nouvelle chaîne .[pos, pos + count)
or [first, last)
with a new string.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.
str
chaînestr
You can help to correct and verify the translation. Click here for instructions.
[pos2, pos2 + count2)
chaîne de caractères ou str
dans le [first2, last2)
gamme[pos2, pos2 + count2)
of str
or characters in the range [first2, last2)
You can help to correct and verify the translation. Click here for instructions.
count2
premiers de la chaîne de caractères pointée par cstr
count2
charcters of the character string pointed to by cstr
You can help to correct and verify the translation. Click here for instructions.
cstr
cstr
You can help to correct and verify the translation. Click here for instructions.
count2
copies de ch
caractèrecount2
copies of character ch
You can help to correct and verify the translation. Click here for instructions.
ilist
ilist
You can help to correct and verify the translation. Click here for instructions.
Sommaire |
Paramètres
pos | - | le début de la sous-chaîne qui va être remplacé
Original: start of the substring that is going to be replaced The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
count | - | longueur de la chaîne qui va être remplacé
Original: length of the substring that is going to be replaced The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
first, last | - | plage de caractères qui va être remplacé
Original: range of characters that is going to be replaced The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
str | - | chaîne à utiliser pour le remplacement
Original: string to use for replacement The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
pos2 | - | début de la chaîne à remplacer Original: start of the substring to replace with The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click |