----- Original Message -----
From: "Miroslaw Dobrzanski-Neumann" <[EMAIL PROTECTED]>
> switch ()
> expects an integral (bool, enum, int, ...) type not an array.

Correct...

> what about this:
> if ("John" == value)

I would say "nay" to this considering all the side effects of pointer
comparison. This is true if (and only if) the address of "value"
equals the address where the compiler has put the const char* "John".

Use str[n|case]cmp for this, but for a clean Xerces-C solution do as
Peter says and don't transcode at all (use the supplied
DOMString::equals).

Regards,
 Martin.

--
Martin Kalen
Software Engineer
TODAY Systems, Inc.
http://www.todaysystems.com.au/
Tel +61-3-9536 3900 - Fax +61-3-9536 3901


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to