“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}}
{{ddcl list begin}}
+
{{begin}}
{{ddcl list item |  
+
{{|  
 
const CharT* find( const CharT* p, std::size_t count, CharT a );
 
const CharT* find( const CharT* p, std::size_t count, CharT a );
 
}}
 
}}
{{ddcl list end}}
+
{{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}}.
  
 
===。参数。===
 
===。参数。===
{{param list begin}}
+
{{begin}}
{{param list item | p | pointer to a character string to search}}
+
{{| p | pointer to a character string to search}}
{{param list item | count | the number of characters to analyze}}
+
{{| count | the number of characters to analyze}}
{{param list item | a | the character to search for}}
+
{{| a | the character to search for}}
{{param list end}}
+
{{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.

。例外。

。 (无)。
原文:
(none)
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

。复杂性。

。线性.
原文:
Linear.
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。