Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1591)

Unified Diff: Source/wtf/unicode/UTF8.h

Issue 15861022: Build WTF as dll in component build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix AutoDrainedPool ctor and ThreadSpecificThreadExit exports Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/wtf/unicode/Collator.h ('k') | Source/wtf/wtf.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/unicode/UTF8.h
diff --git a/Source/wtf/unicode/UTF8.h b/Source/wtf/unicode/UTF8.h
index c3ab6ac6b4ffd75b23fe07513f2d6f1c82e3237d..89378f55602bf07711bfd78d4ee590c57c16f80b 100644
--- a/Source/wtf/unicode/UTF8.h
+++ b/Source/wtf/unicode/UTF8.h
@@ -27,6 +27,7 @@
#define WTF_UTF8_h
#include "wtf/unicode/Unicode.h"
+#include "wtf/WTFExport.h"
namespace WTF {
namespace Unicode {
@@ -34,12 +35,12 @@ namespace Unicode {
// Given a first byte, gives the length of the UTF-8 sequence it begins.
// Returns 0 for bytes that are not legal starts of UTF-8 sequences.
// Only allows sequences of up to 4 bytes, since that works for all Unicode characters (U-00000000 to U-0010FFFF).
- int UTF8SequenceLength(char);
+ WTF_EXPORT int UTF8SequenceLength(char);
// Takes a null-terminated C-style string with a UTF-8 sequence in it and converts it to a character.
// Only allows Unicode characters (U-00000000 to U-0010FFFF).
// Returns -1 if the sequence is not valid (including presence of extra bytes).
- int decodeUTF8Sequence(const char*);
+ WTF_EXPORT int decodeUTF8Sequence(const char*);
typedef enum {
conversionOK, // conversion successful
@@ -62,21 +63,21 @@ namespace Unicode {
// to the replacement character; otherwise (when the flag is set to strict)
// they constitute an error.
- ConversionResult convertUTF8ToUTF16(
+ WTF_EXPORT ConversionResult convertUTF8ToUTF16(
const char** sourceStart, const char* sourceEnd,
UChar** targetStart, UChar* targetEnd, bool* isSourceAllASCII = 0, bool strict = true);
- ConversionResult convertLatin1ToUTF8(
+ WTF_EXPORT ConversionResult convertLatin1ToUTF8(
const LChar** sourceStart, const LChar* sourceEnd,
char** targetStart, char* targetEnd);
- ConversionResult convertUTF16ToUTF8(
+ WTF_EXPORT ConversionResult convertUTF16ToUTF8(
const UChar** sourceStart, const UChar* sourceEnd,
char** targetStart, char* targetEnd, bool strict = true);
- unsigned calculateStringHashAndLengthFromUTF8MaskingTop8Bits(const char* data, const char* dataEnd, unsigned& dataLength, unsigned& utf16Length);
+ WTF_EXPORT unsigned calculateStringHashAndLengthFromUTF8MaskingTop8Bits(const char* data, const char* dataEnd, unsigned& dataLength, unsigned& utf16Length);
- bool equalUTF16WithUTF8(const UChar* a, const UChar* aEnd, const char* b, const char* bEnd);
+ WTF_EXPORT bool equalUTF16WithUTF8(const UChar* a, const UChar* aEnd, const char* b, const char* bEnd);
} // namespace Unicode
} // namespace WTF
« no previous file with comments | « Source/wtf/unicode/Collator.h ('k') | Source/wtf/wtf.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698