| Index: base/utf_string_conversion_utils.h
|
| ===================================================================
|
| --- base/utf_string_conversion_utils.h (revision 95578)
|
| +++ base/utf_string_conversion_utils.h (working copy)
|
| @@ -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 @@
|
| // (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 @@
|
| // 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.
|
|
|