Re: [gtkmm] difference between gunichar and wchar_t?



On Fri, 2004-03-19 at 14:42, Paul Elliott wrote:
> I am sorry if this is a dumb question, but what is the difference
> between a gunichar and a wchar_t?
> 
> Is there a portable way to convert back and forth?
> 
> I ask because ustring::iterator seems to "point to" a gunichar.
> 
> Other C++ libraries seem to want to deal with wchar_t when dealing
> with big international characters.

Somehow or other gunichar can represent a UTF8 character. UTF8
characters might need 1,2,3, or 4 (maybe more) bytes. But wchar_t is a
fixed size. Please see the ustring docs to learn about UTF8.

-- 
Murray Cumming
www.murrayc.com
murrayc murrayc com




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