RE: [xml] Skipping non Latin-1 UTF-8 chars (was: How do I read German Umlaute - entities from anXML-File using libxml?)



Yes, the routine answers the question "What is the memory address of the 
'n'th UTF8 character within the given string".  Sorry if the name is a bit 
confusing - when I wrote it, I was hard-pressed to avoid a name clash with 
other well-known string routines.

-----Original Message-----
From:   Bill Moseley [SMTP:moseley hank org]
Sent:   Saturday, October 06, 2001 10:04 PM
To:     xml gnome org
Subject:        [xml] Skipping non Latin-1 UTF-8 chars (was: How do I read German 
Umlaute - entities from anXML-File using  libxml?)

At 05:42 PM 10/6/2001 +0800, William M. Brack wrote:
You should also be able to use the routine xmlUTF8Strpos(utf, 1) to get 
the
position of the following character, instead of re-inventing the wheel. :)

I looked at that and from the description didn't think it does what I need.
 The pos value is the number of chars to skip?  if utf points to the start
of a UTF-8 character and I use a pos of 1 it will return a pointer to the
second character (or NULL)?

Yes, not re-inventing the wheel was the entire point of this question.

Thanks,



Bill Moseley
mailto:moseley hank org

_______________________________________________
xml mailing list
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml





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