How can I compare a nsAutoString to a c string?
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
Hi,
How can I compare a nsAutoString to a c string?
I have
nsAutoString mystring;
...
I try to compare it with 'test'. How can I do that?
I tried :
mystring.Equals("test")
and
strcmp(mystring.get(), "test") == 1
Both I can't get it to compile.
Thank you for any tip.