======= SEARCH OPERATIONS ======= Find character
| 186 | // ======= SEARCH OPERATIONS ======= |
| 187 | // Find character |
| 188 | fl::size find(char ch, fl::size pos = 0) const FL_NOEXCEPT { |
| 189 | if (pos >= mSize) return npos; |
| 190 | for (fl::size i = pos; i < mSize; ++i) { |
| 191 | if (mData[i] == ch) { |
| 192 | return i; |
| 193 | } |
| 194 | } |
| 195 | return npos; |
| 196 | } |
| 197 | |
| 198 | // Find substring |
| 199 | fl::size find(string_view sv, fl::size pos = 0) const FL_NOEXCEPT { |
nothing calls this directly
no test coverage detected