[Qt-interest] indexOf empty substring
Srikanth Bemineni
srikanth.bemineni at gmail.com
Wed Feb 4 04:22:50 CET 2009
I want to know why an indexof() of an empty substring on a string gives me
0.Is this valid or did I miss some basics
QString str = "xxxxxxxxxxxxxxxx";
QString substr = "";
str.indexOf(substr) should be -1 right but I am getting 0 is this correct.
Please enlighten me If I am wrong
--
_/\_
With Regards
SB Angel Warrior
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090203/0281378f/attachment.html
More information about the Qt-interest-old
mailing list