Re: [xml] iterating an UTF-8 string (xmlChar)
- From: Roberto Diaz <rdm354 tid es>
- To: veillard redhat com
- Cc: xml gnome org
- Subject: Re: [xml] iterating an UTF-8 string (xmlChar)
- Date: Thu, 14 Jul 2005 11:56:53 +0200
How do I iterate the string?
depends what you want to do with it
while ( myString[i] != 0) {
i++;
}
This is ok in case I know all characters are represented by one byte..
(this is what I understand).
or you can use xmlGetUTF8Char() to go though each character code point
using the returned len to increment the i byte index.
But it seems that len it is also a parameter expected by the function..
actually it is an in/out parameter.. How Can I find out the size of my
characters?
Best Regards
Roberto
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]