hi
This commit is contained in:
@@ -389,6 +389,13 @@ class String {
|
||||
return CompareNoCase(s) == 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if this string begins with another string.
|
||||
*/
|
||||
bool StartsWith(const char *s) const {
|
||||
return strncmp(array_.begin(), s, strlen(s)) == 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Compares two strings.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user