Re: [gtkmm] difference between gunichar and wchar_t?
- From: Murray Cumming <murrayc murrayc com>
- To: Paul Elliott <pelliott io com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] difference between gunichar and wchar_t?
- Date: Fri, 19 Mar 2004 22:24:52 +0100
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]