diff options
Diffstat (limited to 'base/string_util.h')
-rw-r--r-- | base/string_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/string_util.h b/base/string_util.h index 367eaa8..b9301c6 100644 --- a/base/string_util.h +++ b/base/string_util.h @@ -275,8 +275,14 @@ BASE_EXPORT bool ContainsOnlyChars(const std::string& input, // Converts to 7-bit ASCII by truncating. The result must be known to be ASCII // beforehand. +namespace base { BASE_EXPORT std::string WideToASCII(const std::wstring& wide); BASE_EXPORT std::string UTF16ToASCII(const string16& utf16); +} // namespace base +// TODO(brettw) convert this entier file to using the base namespace and remove +// this using. +using base::WideToASCII; +using base::UTF16ToASCII; // Converts the given wide string to the corresponding Latin1. This will fail // (return false) if any characters are more than 255. |