Re: How can I compare a nsAutoString to a c string?
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: > I try to compare it with 'test'. How can I do that? .EqualsLiteral("test") -Boris P.S. http://developer.mozilla.org/en/docs/XPCOM_string_guide covers some other ways too, but could use updating. And if you're using frozen glue strings, the answers might all be different, of course. P.P.S. Followup set to .xpcom, which is where this sort of thing belongs. This is not a DOM issue.