diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 00:39:57 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 00:39:57 +0000 |
commit | 2dcec1fbb4343693721ec1b81452a93883efbc2e (patch) | |
tree | f32021cc84b1f14e46e90a978c201b536cdde61e /url/url_canon_internal.h | |
parent | 1ada567356f93581d6615f5e4d06f8c5e32e1cef (diff) | |
download | chromium_src-2dcec1fbb4343693721ec1b81452a93883efbc2e.zip chromium_src-2dcec1fbb4343693721ec1b81452a93883efbc2e.tar.gz chromium_src-2dcec1fbb4343693721ec1b81452a93883efbc2e.tar.bz2 |
Make the copy of GURL in src/url buildable as a component build. (try 2)
BUG=229660
TBR=brettw
Review URL: https://chromiumcodereview.appspot.com/15805003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203025 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'url/url_canon_internal.h')
-rw-r--r-- | url/url_canon_internal.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/url/url_canon_internal.h b/url/url_canon_internal.h index 265bdfd..23adc9e 100644 --- a/url/url_canon_internal.h +++ b/url/url_canon_internal.h @@ -83,7 +83,7 @@ void AppendStringOfType(const char16* source, int length, // Maps the hex numerical values 0x0 to 0xf to the corresponding ASCII digit // that will be used to represent it. -extern const char kHexCharLookup[0x10]; +URL_EXPORT extern const char kHexCharLookup[0x10]; // This lookup table allows fast conversion between ASCII hex letters and their // corresponding numerical value. The 8-bit range is divided up into 8 @@ -150,8 +150,8 @@ extern const char16 kUnicodeReplacementCharacter; // (for a single-byte ASCII character, it will not be changed). // // Implementation is in url_canon_icu.cc. -bool ReadUTFChar(const char* str, int* begin, int length, - unsigned* code_point_out); +URL_EXPORT bool ReadUTFChar(const char* str, int* begin, int length, + unsigned* code_point_out); // Generic To-UTF-8 converter. This will call the given append method for each // character that should be appended, with the given output method. Wrappers @@ -227,8 +227,8 @@ inline void AppendUTF8EscapedValue(unsigned char_value, CanonOutput* output) { // (for a single-16-bit-word character, it will not be changed). // // Implementation is in url_canon_icu.cc. -bool ReadUTFChar(const char16* str, int* begin, int length, - unsigned* code_point); +URL_EXPORT bool ReadUTFChar(const char16* str, int* begin, int length, + unsigned* code_point); // Equivalent to U16_APPEND_UNSAFE in ICU but uses our output method. inline void AppendUTF16Value(unsigned code_point, @@ -346,10 +346,10 @@ void AppendInvalidNarrowString(const char16* spec, int begin, int end, // replacing the invalid characters with the "invalid character". It will // return false in the failure case, and the caller should not continue as // normal. -bool ConvertUTF16ToUTF8(const char16* input, int input_len, - CanonOutput* output); -bool ConvertUTF8ToUTF16(const char* input, int input_len, - CanonOutputT<char16>* output); +URL_EXPORT bool ConvertUTF16ToUTF8(const char16* input, int input_len, + CanonOutput* output); +URL_EXPORT bool ConvertUTF8ToUTF16(const char* input, int input_len, + CanonOutputT<char16>* output); // Converts from UTF-16 to 8-bit using the character set converter. If the // converter is NULL, this will use UTF-8. @@ -408,9 +408,10 @@ bool CanonicalizePartialPath(const char16* spec, #ifndef WIN32 // Implementations of Windows' int-to-string conversions -int _itoa_s(int value, char* buffer, size_t size_in_chars, int radix); -int _itow_s(int value, char16* buffer, size_t size_in_chars, - int radix); +URL_EXPORT int _itoa_s(int value, char* buffer, size_t size_in_chars, + int radix); +URL_EXPORT int _itow_s(int value, char16* buffer, size_t size_in_chars, + int radix); // Secure template overloads for these functions template<size_t N> |