Re: [libxml++] Converting a xmlChar* to a char*
- From: Christophe de Vienne <cdevienne alphacent com>
- To: libxmlplusplus-general lists sourceforge net
- Subject: Re: [libxml++] Converting a xmlChar* to a char*
- Date: Thu, 26 Aug 2004 22:01:42 +0200
Moretti, Luciano (MED) wrote:
ok, I know that this is LibXML++ list, not LibXML, but I figured that
someone on here would know the answer just as fast, and I wouldn't have
to join another list (Yeah, I'm being lazy)
What's the best way to convert a xmlChar* to something that can be
passed as a char*? Yes, I do realize that it's probably going to
involve a copy routine to do the translation from Unicode. (I need to
run data through atod/atof to convert it to numbers)
If you have no special characters (ascii code > 127), a simple cast is
fine. So if you have only digits it's ok.
Regards,
Christophe
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]