This commit is contained in:
Garry Boyer
2007-09-06 17:15:26 +00:00
parent 8716ce3009
commit 81755ea6c0
18 changed files with 462 additions and 106 deletions
+7
View File
@@ -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.
*