std::basic_string::find_first_of
来自cppreference.com
< cpp | string | basic string
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| size_type find_first_of( const basic_string& str, size_type pos = 0 ) const; |
(1) | |
| size_type find_first_of( const CharT* s, size_type pos, size_type count ) const; |
(2) | |
| size_type find_first_of( const CharT* s, size_type pos = 0 ) const; |
(3) | |
| size_type find_first_of( CharT ch, size_type pos = 0 ) const; |
(4) | |
查找等于在给定的字符序列的字符之一的第一个字符。开始搜索
1) pos,即找到一个字符不能在之前的位置pos.原文:
Finds the first character equal to one of characters in the given character sequence. Search begins at
pos, i.e. the found character must not be in position preceding pos.找到的第一个字符等于在
2) str的字符之一. 原文:
Finds the first character equal to one of characters in
str. 发现的第一个字符等于1中的字符的字符串的字符的第一
3) count所指向s。 s可以包含空字符.原文:
Finds the first 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 first 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 first character equal to
ch.目录 |
[编辑] 参数
| str | - | 识别字符进行搜索的字符串
原文: string identifying characters to search for |
| pos | - | 位置开始搜索
原文: position at which to begin searching |
| count | - | 字符识别字符进行搜索的字符串的长度
原文: length of character string identifying characters to search for |
| s | - | 字符识别字符进行搜索的字符串的指针
原文: pointer to a character string identifying characters to search for |
| ch | - | 搜索字符
|
[编辑] 返回值
[编辑] 例外
1,4)[编辑] 注释
traits::eq()用于执行比较.
原文:
traits::eq() is used to perform the comparison.
[编辑] 示例
| 本章尚未完成 原因:暂无示例 |
[编辑] 另请参阅
| 找到字符串中的字符 (公共成员函数) | |
| 找到一个子字符串最后一次出现的 原文: find the last occurrence of a substring (公共成员函数) | |
| 找到第一个没有的字符 (公共成员函数) | |
| 最后一次出现的字符 (公共成员函数) | |
| 找到最后没有的字符 (公共成员函数) | |