| Index: base/strings/string_util.h
|
| diff --git a/base/strings/string_util.h b/base/strings/string_util.h
|
| index bea44ae8fddbaa0992d2d76b5d2719950df70e1d..12915f7a13ebe61477ff666bb82304e3600d4952 100644
|
| --- a/base/strings/string_util.h
|
| +++ b/base/strings/string_util.h
|
| @@ -315,6 +315,14 @@ BASE_EXPORT bool LowerCaseEqualsASCII(const char16* a_begin,
|
| // strings are not ASCII.
|
| BASE_EXPORT bool EqualsASCII(const string16& a, const StringPiece& b);
|
|
|
| +// Returns true if str starts with search, or false otherwise.
|
| +BASE_EXPORT bool StartsWithASCII(const std::string& str,
|
| + const std::string& search,
|
| + bool case_sensitive);
|
| +BASE_EXPORT bool StartsWith(const base::string16& str,
|
| + const base::string16& search,
|
| + bool case_sensitive);
|
| +
|
| } // namespace base
|
|
|
| #if defined(OS_WIN)
|
| @@ -325,14 +333,6 @@ BASE_EXPORT bool EqualsASCII(const string16& a, const StringPiece& b);
|
| #error Define string operations appropriately for your platform
|
| #endif
|
|
|
| -// Returns true if str starts with search, or false otherwise.
|
| -BASE_EXPORT bool StartsWithASCII(const std::string& str,
|
| - const std::string& search,
|
| - bool case_sensitive);
|
| -BASE_EXPORT bool StartsWith(const base::string16& str,
|
| - const base::string16& search,
|
| - bool case_sensitive);
|
| -
|
| // Returns true if str ends with search, or false otherwise.
|
| BASE_EXPORT bool EndsWith(const std::string& str,
|
| const std::string& search,
|
|
|