std::basic_string::append
提供: cppreference.com
< cpp | string | basic string
![]() | このページは、Google 翻訳を使って英語版から機械翻訳されました。 翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
basic_string& append( size_type count, const CharT& ch ); | (1) | |
basic_string& append(const basic_string& str ); | (2) | |
basic_string& append(const basic_string& str, size_type pos, | (3) | |
basic_string& append(const CharT* s, size_type count ); | (4) | |
basic_string& append(const CharT* s ); | (5) | |
template<class InputIt > basic_string& append( InputIt first, InputIt last ); | (6) | |
basic_string& append(std::initializer_list<CharT> ilist ); | (7) | (C++11およびそれ以降) |
文字列の末尾に追加する文字が追加されて.
1) Original:
Appends additional characters to 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.
付加
2) count
文字ch
のコピーOriginal:
Appends
count
copies of character 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.
付加列
3) str
Original:
Appends string
str
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.
付加
4) [pos, pos+count)
のsubstringstr
。要求された部分文字列が文字列の終端を過ぎ、またはcount == nposあれば継続した場合、添付された部分文字列が[pos, size())
です。 pos >= str.size()場合、std::out_of_rangeがスローされます. Original:
Appends a substring
[pos, pos+count)
of str
. If the requested substring lasts past the end of the string, or if count == npos, the appended substring is [pos, size())
. If pos >= str.size(), std::out_of_range is thrown. 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.
付加した文字列の最初の文字が
5) count
s
が指す。 s
はヌル文字を含めることができます.Original:
Appends the first
count
characters of character string pointed to by s
. s
can contain null 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.
付加は、NULLで終わる文字列は
6) s
が指す。文字列の長さは、最初のnull文字によって決定されます. Original:
Appends the null-terminated character string pointed to by
s
. The length of the string is determined by the first null character. 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.
レンジ
7) [first, last)
における付加文字Original:
Appends characters in the range
[first, last)
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.
初期化子リストの末尾に追加する文字
ilist
.Original:
Appends characters in the initializer list
ilist
.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.
目次 |
[編集]パラメータ
count | - | 付加する文字の数 Original: number of characters to append The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
ch | - | 文字は値付加する Original: character value to append The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
first, last | - | 付加する文字の範囲を指定します Original: range of characters to append The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
str | - | 追加する文字列 Original: string to append The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
s | - | 付加する文字列へのポインタ Original: pointer to the character string to append The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
init | - | 付加する文字で初期化子リスト Original: initializer list with the characters to append The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
型の要件 | ||
-InputIt は InputIterator の要求を満足しなければなりません。 |
[編集]値を返します
*this
[編集]複雑性
1)count
の線形Original:
linear in
count
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.
str
の大きさに比例Original:
linear in size of
str
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.
count
の線形Original:
linear in
count
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.
s
の大きさに比例Original:
linear in size of
s
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.
first
last
との間の距離の線形Original:
linear in distance between
first
and last
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.
init
の大きさに比例Original:
linear in size of
init
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.
[編集]例
This section is incomplete Reason: no example |
[編集]参照
末尾に追加の文字を Original: appends characters to the end The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) |