Re: Unicode question...
- From: Robert Brady <robert susu org uk>
- To: Derek Simkowiak <dereks kd-dev com>
- Cc: gtk-devel-list gnome org
- Subject: Re: Unicode question...
- Date: Thu, 6 Jul 2000 21:37:50 +0100 (BST)
On Thu, 6 Jul 2000, Derek Simkowiak wrote:
> Has 13 ASCII characters, the last one of which is \n. What does
> that look like as a wide character? What does \t look like? Does it
> matter?
The first 128 codes in unicode are ASCII the same as in ASCII. so, \n, \t
and so on will work as expected.
> if ( *utf8_input_string == '\n' )
Yep.
> will not work. Or is there some kind of hidden typecasting that
> will let the one-byte \n compare directly to a 4-byte ucs4 character?
That does work magically. You can use L'\n' as a wchar_t constant
also. (dunno how widely supported that is, though..)
--
Robert
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]