Re: UTF-8, UTF-16 and UTF-32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 22, 2008 at 22:36, Dallas Clarke <DClarke@xxxxxxxxxxxxxx> wrote:> Hello Scott,>> wchar_t* strchr(wchar_t *string, wchar_t chr){>   while(*string != '\0' && *string != chr) ++string;>   if(*string == chr) return string;>   return NULL;> }>
That doesn't work.  What if I want to look for 𝔅, U+1D505MATHEMATICAL FRAKTUR CAPITAL B?  It's UTF-16 representation is 0xD8350xDD05, which obviously doesn't fit in the single wchar_t parameter.
~ Scott

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux