c++ - How is unicode or any other coding data stored in memory? (win32) -


sorry amateurish question, want search , comparisions within unicode string.

i little bit confused unicode-16/wchar_t, in windows os, stored same way array of uint16?

i mean if can use way without trouble?

wchar_t a[100];  somefunction((uint16 *)a); //treat array of uint16 data , it. 

yes, it's array of wchar_t, uint16_t. it's (usually) nul-terminated, meaning there's zero-valued wchar_t @ end of string.


Comments