| 186 | /////////////////////////////////////////// |
| 187 | |
| 188 | int32_t stref_indexof(const stref_t &aRef, char aChar) { |
| 189 | for (uint32_t i = 0; i < aRef.length; i++) { |
| 190 | if (aRef.start[i] == aChar) |
| 191 | return i; |
| 192 | } |
| 193 | return -1; |
| 194 | } |
| 195 | |
| 196 | /////////////////////////////////////////// |
| 197 |