std::wcsstr
STD::wcsstr
Defined in header | | |
---|---|---|
const wchar_t* wcsstr( const wchar_t* dest, const wchar_t* src | | |
wchar_t* wcsstr( wchar_t* dest, const wchar_t* src | | |
查找宽字符串的第一次出现。src
在宽串中,指的是...dest
不对终止空字符进行比较。
参数
dest | - | pointer to the null-terminated wide string to examine |
---|---|---|
src | - | pointer to the null-terminated wide string to search for |
返回值
中找到的子字符串的第一个字符的指针。dest
,或NULL
如果找不到这样的子字符串。如果src
指向空字符串,dest
会被归还。
例
另见
find | find characters in the string (public member function of std::basic_string) |
---|---|
strstr | finds the first occurrence of a substring of characters (function) |
wcschr | finds the first occurrence of a wide character in a wide string (function) |
wcsrchr | finds the last occurrence of a wide character in a wide string (function) |
c wcsstr文件
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。