Rename HasPrefixString to strings::StartsWith, and HasSuffixString to
strings::EndsWith, moving them to third_party/abcl/strings/stringpiece_utils.h
HasPrefixString => strings::StartsWith
HasSuffixString => strings::EndsWith
Change on 2017/01/09 by billydonahue
#include "third_party/abcl/strings/escaping.h"
#include "third_party/abcl/strings/numbers.h"
#include "third_party/abcl/strings/string_view.h"
+#include "third_party/abcl/strings/string_view_utils.h"
#include "third_party/abcl/strings/strip.h"
#include "third_party/abcl/strings/util.h"
@@ -126,7 +127,7 @@ string UnderscoresToCamelCaseImpl(const string& input, bool cap_next_letter) {
}
string StripProto(const string& filename) {
- if (HasSuffixString(filename, ".protodevel")) {
+ if (strings::EndsWith(filename, ".protodevel")) {
return StripSuffixString(filename, ".protodevel");
} else {
return StripSuffixString(filename, ".proto");
