Situation 1:
I get a XML_Char* string and I want to compare it against a constant
string. I'd like to avoid unnecessary conversions (in order to achieve
maximum performance).
How do I define a constant XML_Char* string with ASCII-only chars that
just sits somewhere waiting to be compared against? Is there a string
comparison function that compares two XML_Char* (or PRUnichar*) strings
directly without converting them to something else first? I found a
function for flat 8 bit C strings but not for wide char flat strings. (I
probably missed something.) I suppose XML_Char* and PRUnichar* can be
cast back and forth without danger. Is this a correct assumption?
Situation 2:
I'd like to pass a XML_Char* string constant to a function.
Is it OK to pass (const XML_Char*) NS_LITERAL_STRING("foo").get() ?
--
Henri Sivonen
[EMAIL PROTECTED]
http://www.clinet.fi/~henris/