名前空間
変種
操作

std::experimental::basic_string_view<CharT,Traits>::substr

From cppreference.com
 
 
 
 
 
constexpr basic_string_view
    substr(size_type pos = 0, size_type count = npos ) const;

[pos, pos + rcount) の部分文字列のビューを返します。ここで、rcountcountsize() - pos のうち小さい方です。

目次

[編集] パラメータ

pos - 最初の文字の位置
count - 要求された長さ

[編集] 戻り値

[pos, pos + rcount) の部分文字列のビュー。

[編集] 例外

std::out_of_range: pos > size() の場合

[編集] 計算量

定数。

[編集] 関連項目

文字をコピーする
(public member function) [編集]
ビュー内の文字を検索する
(public member function) [編集]
English 日本語 中文(简体) 中文(繁體)