Commit 32c05be9 authored by lrita's avatar lrita

make butil::BasicStringPiece<T> support string split functions-family

parent 10152646
...@@ -373,10 +373,6 @@ bool IsStringUTF8(const StringPiece& str) { ...@@ -373,10 +373,6 @@ bool IsStringUTF8(const StringPiece& str) {
return true; return true;
} }
bool IsStringUTF8(const std::string& str) {
return IsStringUTF8(StringPiece(str));
}
} // namespace butil } // namespace butil
template<typename Iter> template<typename Iter>
......
...@@ -254,7 +254,6 @@ BUTIL_EXPORT bool ContainsOnlyChars(const StringPiece16& input, ...@@ -254,7 +254,6 @@ BUTIL_EXPORT bool ContainsOnlyChars(const StringPiece16& input,
// to have the maximum 'discriminating' power from other encodings. If // to have the maximum 'discriminating' power from other encodings. If
// there's a use case for just checking the structural validity, we have to // there's a use case for just checking the structural validity, we have to
// add a new function for that. // add a new function for that.
BUTIL_EXPORT bool IsStringUTF8(const std::string& str);
BUTIL_EXPORT bool IsStringUTF8(const StringPiece& str); BUTIL_EXPORT bool IsStringUTF8(const StringPiece& str);
BUTIL_EXPORT bool IsStringASCII(const StringPiece& str); BUTIL_EXPORT bool IsStringASCII(const StringPiece& str);
BUTIL_EXPORT bool IsStringASCII(const string16& str); BUTIL_EXPORT bool IsStringASCII(const string16& str);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment