首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::wcsstr

Defined in header <cwchar>

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文件

代码语言:txt
复制
 © cppreference.com

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

扫码关注腾讯云开发者

领取腾讯云代金券