“cpp/string/char traits/find”的版本间的差异
来自cppreference.com
< cpp | string | char traits
小 (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) |
小 (Use {{lc}}. Update links. Various fixes.) |
||
第2行: | 第2行: | ||
{{cpp/string/char_traits/title|find}} | {{cpp/string/char_traits/title|find}} | ||
{{cpp/string/char_traits/navbar}} | {{cpp/string/char_traits/navbar}} | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| |
const CharT* find( const CharT* p, std::size_t count, CharT a ); | const CharT* find( const CharT* p, std::size_t count, CharT a ); | ||
}} | }} | ||
− | {{ | + | {{end}} |
Searches for character {{tt|a}} within the first {{tt|count}} characters within character string pointed to by {{tt|p}}. | Searches for character {{tt|a}} within the first {{tt|count}} characters within character string pointed to by {{tt|p}}. | ||
===。参数。=== | ===。参数。=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| p | pointer to a character string to search}} |
− | {{ | + | {{| count | the number of characters to analyze}} |
− | {{ | + | {{| a | the character to search for}} |
− | {{ | + | {{end}} |
===。 | ===。 |
2013年7月2日 (二) 12:23的版本
![]() |
该页由英文版维基使用谷歌翻译机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击此处。 |
const CharT* find( const CharT* p, std::size_t count, CharT a ); |
||
Searches for character a
within the first count
characters within character string pointed to by p
.
。参数。
p | - | pointer to a character string to search |
count | - | the number of characters to analyze |
a | - | the character to search for |
===。
返回值。===
A pointer to the first character of value a
withing the given character string.