Re: Unicode question...



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]