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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -