在线文档教程
C++
字符串 | Strings

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会被归还。

另见

findfind characters in the string (public member function of std::basic_string)
strstrfinds the first occurrence of a substring of characters (function)
wcschrfinds the first occurrence of a wide character in a wide string (function)
wcsrchrfinds the last occurrence of a wide character in a wide string (function)

c wcsstr文件

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/string/Wide/wcsstr