| 45 | } |
| 46 | |
| 47 | bool CefStrBase::startw(const char *sub) const |
| 48 | { |
| 49 | if (empty()) return false; |
| 50 | |
| 51 | size_t i = 0; |
| 52 | while (sub[i] != '\0') { |
| 53 | if (str[i] == '\0') |
| 54 | return false; |
| 55 | if (str[i] != sub[i]) |
| 56 | return false; |
| 57 | i++; |
| 58 | } |
| 59 | return true; |
| 60 | } |
| 61 | |
| 62 | bool CefStrBase::endw(const char *sub) const |
| 63 | { |
no outgoing calls
no test coverage detected