Re: Unicode question...
- From: Michael Meeks <michael helixcode com>
- To: Derek Simkowiak <dereks kd-dev com>
- Cc: Robert Brady <robert susu org uk>, gtk-devel-list gnome org
- Subject: Re: Unicode question...
- Date: Thu, 6 Jul 2000 17:04:25 -0400 (EDT)
Hi,
On Thu, 6 Jul 2000, Derek Simkowiak wrote:
> Really? Just to make sure I understand you correctly:
I was assuming utf8_input_string was a char *, most likely a single byte.
char *p = clever_utf8_string;
while (*p) {
if (*p++ == '\n')
lines++;
}
ie. there is no need to do anything clever, however if you want to get the
extra function overhead of unicode_next_utf8 in there it will work too,
just slower.
Regards,
Michael.
--
mmeeks@gnu.org <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]