简体   繁体   中英

Convert WCHAR string to lower case C

I have a code:

WCHAR * cmp = L"TEST";

Need a function which would return this string in lower case!

Thanks!

Based on the WCHAR , you're presumably using (some version of) VC++. In this case, you want to use _wcslwr or _wcslwr_s . You normally do not want to use tolower or toupper on wide character strings.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM