Namespaces
Variants

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

From cppreference.net
constexpr size_type
find_last_not_of ( basic_string_view v, size_type pos = npos ) const noexcept ;
(1) (ライブラリファンダメンタルTS)
constexpr size_type
find_last_not_of ( CharT c, size_type pos = npos ) const noexcept ;
(2) (ライブラリファンダメンタルTS)
constexpr size_type
find_last_not_of ( const CharT * s, size_type pos, size_type count ) const ;
(3) (ライブラリファンダメンタルTS)
constexpr size_type
find_last_not_of ( const CharT * s, size_type pos = npos ) const ;
(4) (ライブラリファンダメンタルTS)

指定された文字シーケンス内のいずれの文字とも等しくない最後の文字を検索します。

1) このビューの位置 pos から開始して、 v の文字のいずれにも等しくない最後の文字を検索します。
2) find_last_not_of ( basic_string_view ( & c, 1 ) , pos ) と同等です。
3) 次と等価 find_last_not_of ( basic_string_view ( s, count ) , pos )
4) find_last_not_of ( basic_string_view ( s ) , pos ) と等価。

目次

パラメータ

v - 検索対象のビュー
pos - 検索を開始する位置
count - 比較する文字列の長さ
s - 比較対象の文字列へのポインタ
ch - 比較対象の文字

戻り値

指定された文字列内のいずれの文字とも等しくない最後の文字の位置、または npos そのような文字が見つからない場合。

計算量

O( size() * v.size() ) 最悪の場合。

関連項目

ビュー内の文字を検索
(公開メンバ関数)
部分文字列の最後の出現を検索
(公開メンバ関数)
文字の最初の出現を検索
(公開メンバ関数)
文字の最後の出現を検索
(公開メンバ関数)
文字の最初の不在を検索
(公開メンバ関数)