diff options
Diffstat (limited to 'base/utf_string_conversion_utils.h')
-rw-r--r-- | base/utf_string_conversion_utils.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/base/utf_string_conversion_utils.h b/base/utf_string_conversion_utils.h index d86d8a3..b100112 100644 --- a/base/utf_string_conversion_utils.h +++ b/base/utf_string_conversion_utils.h @@ -8,7 +8,7 @@ // This should only be used by the various UTF string conversion files. -#include "base/base_api.h" +#include "base/base_export.h" #include "base/string16.h" namespace base { @@ -38,23 +38,23 @@ inline bool IsValidCharacter(uint32 code_point) { // (as in a for loop) will take the reader to the next character. // // Returns true on success. On false, |*code_point| will be invalid. -BASE_API bool ReadUnicodeCharacter(const char* src, - int32 src_len, - int32* char_index, - uint32* code_point_out); +BASE_EXPORT bool ReadUnicodeCharacter(const char* src, + int32 src_len, + int32* char_index, + uint32* code_point_out); // Reads a UTF-16 character. The usage is the same as the 8-bit version above. -BASE_API bool ReadUnicodeCharacter(const char16* src, - int32 src_len, - int32* char_index, - uint32* code_point); +BASE_EXPORT bool ReadUnicodeCharacter(const char16* src, + int32 src_len, + int32* char_index, + uint32* code_point); #if defined(WCHAR_T_IS_UTF32) // Reads UTF-32 character. The usage is the same as the 8-bit version above. -BASE_API bool ReadUnicodeCharacter(const wchar_t* src, - int32 src_len, - int32* char_index, - uint32* code_point); +BASE_EXPORT bool ReadUnicodeCharacter(const wchar_t* src, + int32 src_len, + int32* char_index, + uint32* code_point); #endif // defined(WCHAR_T_IS_UTF32) // WriteUnicodeCharacter ------------------------------------------------------- @@ -62,7 +62,8 @@ BASE_API bool ReadUnicodeCharacter(const wchar_t* src, // Appends a UTF-8 character to the given 8-bit string. Returns the number of // bytes written. // TODO(brettw) Bug 79631: This function should not be exposed. -BASE_API size_t WriteUnicodeCharacter(uint32 code_point, std::string* output); +BASE_EXPORT size_t WriteUnicodeCharacter(uint32 code_point, + std::string* output); // Appends the given code point as a UTF-16 character to the given 16-bit // string. Returns the number of 16-bit values written. |