std::strcspn
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <cstring> 中定义
|
||
| size_t strcspn( const char *dest, const char *src ); |
||
。退货的最大起始段的长度的字节串所包含的字符不中找到字节的字符串所指向的
destsrc,.原文:
Returns the length of the maximum initial segment of the byte string pointed to by
dest, that consists of only the characters not found in byte string pointed to by src.[编辑] 。参数。
| dest | - | 。 NULL结尾的字节串的指针来进行分析。
原文: pointer to the null-terminated byte string to be analyzed |
| src | - | 。指针指向NULL结尾的字节字符串,其中包含的字符进行搜索。
原文: pointer to the null-terminated byte string that contains the characters to search for |
===。 返回值。===
。只包含未找到的字符的字节串指出,
src的最大初始段的长度。原文:
The length of the maximum initial segment that contains only characters not found in the byte string pointed to by
src[编辑] 。为例。
| 本章尚未完成 原因:暂无示例 |
[编辑] 。另请参阅。
| 返回的最大初始段,由 仅发现在另一个字节的字符串的字符的长度 原文: returns the length of the maximum initial segment that consists of only the characters found in another byte string (函数) | |
| 发现的第一个位置在一个字符串中的任何字符,在另一个字符串 原文: finds the first location of any character in one string, in another string (函数) | |
| C documentation for strcspn
| |