std::basic_string::find_last_of
来自cppreference.com
< cpp | string | basic string
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| size_type find_last_of( const basic_string& str, size_type pos = npos ) const; |
(1) | |
| size_type find_last_of( const CharT* s, size_type pos, size_type count ) const; |
(2) | |
| size_type find_last_of( const CharT* s, size_type pos = npos ) const; |
(3) | |
| size_type find_last_of( CharT ch, size_type pos = npos ) const; |
(4) | |
查找等于在给定的字符序列的字符之一的最后一个字符。的开始搜索
1) pos,即只的子串[0, pos)被认为是在搜索。 npos传递pos整个字符串都将被搜索.原文:
Finds the last character equal to one of characters in the given character sequence. Search begins at
pos, i.e. only the substring [0, pos) is considered in the search. If npos is passed as pos whole string will be searched.寻找的最后一个字符等于在
2) str的字符之一. 原文:
Finds the last character equal to one of characters in
str. 查找最后一个字符等于1中的字符的字符串的字符的第一
3) count所指向s。 s可以包含空字符.原文:
Finds the last character equal to one of characters in the first
count characters of the character string pointed to by s. s can include null characters.找到的最后一个字符一个字符在字符串所指向的
4) s。第一个空字符的字符串的长度是由.原文:
Finds the last character equal to one of characters in character string pointed to by
s. The length of the string is determined by the first null character.找到的最后一个字符等于
ch.原文:
Finds the last character equal to
ch.目录 |
[编辑] 参数
| str | - | 识别字符进行搜索的字符串
原文: string identifying characters to search for |
| count | - | 字符识别字符进行搜索的字符串的长度
原文: length of character string identifying characters to search for |
| s | - | 指针标识字符的字符串搜索FO
原文: pointer to a character string identifying characters to search fo |
| ch | - | 搜索字符
|
[编辑] 返回值
[编辑] 示例
| 本章尚未完成 原因:暂无示例 |
[编辑] 另请参阅
| 在字符串中寻找字符(串) (公共成员函数) | |
| 寻找字符(串)最后一次出现的位置 原文: find the last occurrence of a substring (公共成员函数) | |
| 寻找字符串中任意字符第一次出现的位置 (公共成员函数) | |
| 寻找字符串中任意字符第一次缺失的位置 (公共成员函数) | |
| 寻找字符串中任意字符最后一次缺失的位置 (公共成员函数) |