c++ - How to get codepoint of particular WCHAR character? -


for example need codepoint of 5th character here, ð

const wchar* mystring = l"Þátíð"; 

i know has code point : u+00f0 - how integer using c++ ?

const wchar mystring[] = l"Þátíð"; size_t mystringlength = 0; if(succeeded(stringcchlengthw(mystring, strsafe_max_cch, &mystringlength)) {     lpcwstr mystringiterator = mystring;     for(size_t sz = 0; sz < mystringlength; ++sz)     {         unsigned int mysupersecretunicodecharacter = *mystringiterator;         lpcwstr mynextiterator = charnext(mystringiterator);         std::vector<unsigned int> diacriticsofmysupersecretunicodecharacter(mystringiterator+1, mynextiterator);         mystringiterator = mynextiterator;     } } 

edit 1: made work

edit 2: made codepoints


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -