| 135 | } |
| 136 | |
| 137 | bool Beefy::StrStartsWith(const StringImpl& str, const StringImpl& subStr) |
| 138 | { |
| 139 | if (subStr.length() < str.length()) |
| 140 | return false; |
| 141 | |
| 142 | return strncmp(str.c_str(), subStr.c_str(), subStr.length()) == 0; |
| 143 | } |
| 144 | |
| 145 | bool Beefy::StrEndsWith(const StringImpl& str, const StringImpl& subStr) |
| 146 | { |