| 86 | } |
| 87 | |
| 88 | intptr StringView::IndexOf(const StringView& subStr, bool ignoreCase) const |
| 89 | { |
| 90 | for (intptr ofs = 0; ofs <= mLength - subStr.mLength; ofs++) |
| 91 | { |
| 92 | if (String::Compare(*this, ofs, subStr, 0, subStr.mLength, ignoreCase) == 0) |
| 93 | return ofs; |
| 94 | } |
| 95 | |
| 96 | return -1; |
| 97 | } |
| 98 | |
| 99 | intptr StringView::IndexOf(const StringView& subStr, int startIdx) const |
| 100 | { |
no outgoing calls