diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-25 18:46:38 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-25 18:46:38 +0000 |
commit | 90509cbdde392aa218771f6673b9b5a6600c2b57 (patch) | |
tree | c40048ae5b465f460070d629b2948fc98b2655bb /base/utf_offset_string_conversions.h | |
parent | 0e3522e5b079136229758ba0e02fa3d36718c5cd (diff) | |
download | chromium_src-90509cbdde392aa218771f6673b9b5a6600c2b57.zip chromium_src-90509cbdde392aa218771f6673b9b5a6600c2b57.tar.gz chromium_src-90509cbdde392aa218771f6673b9b5a6600c2b57.tar.bz2 |
Base: A few more files using BASE_API (for base.dll)
BUG=76996
TEST=none
Review URL: http://codereview.chromium.org/6733031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79426 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/utf_offset_string_conversions.h')
-rw-r--r-- | base/utf_offset_string_conversions.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/base/utf_offset_string_conversions.h b/base/utf_offset_string_conversions.h index b20e4b1..13df1b4 100644 --- a/base/utf_offset_string_conversions.h +++ b/base/utf_offset_string_conversions.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -8,6 +8,7 @@ #include <string> +#include "base/base_api.h" #include "base/string16.h" namespace base { @@ -19,18 +20,18 @@ class StringPiece; // in the result strings. If this isn't possible because the offsets point past // the end of the source strings or into the middle of multibyte sequences, they // will be set to std::wstring::npos. |offset_for_adjustment| may be NULL. -bool UTF8ToWideAndAdjustOffset(const char* src, - size_t src_len, - std::wstring* output, - size_t* offset_for_adjustment); -std::wstring UTF8ToWideAndAdjustOffset(const base::StringPiece& utf8, - size_t* offset_for_adjustment); - -bool UTF16ToWideAndAdjustOffset(const char16* src, - size_t src_len, - std::wstring* output, - size_t* offset_for_adjustment); -std::wstring UTF16ToWideAndAdjustOffset(const string16& utf16, +BASE_API bool UTF8ToWideAndAdjustOffset(const char* src, + size_t src_len, + std::wstring* output, size_t* offset_for_adjustment); +BASE_API std::wstring UTF8ToWideAndAdjustOffset(const base::StringPiece& utf8, + size_t* offset_for_adjustment); + +BASE_API bool UTF16ToWideAndAdjustOffset(const char16* src, + size_t src_len, + std::wstring* output, + size_t* offset_for_adjustment); +BASE_API std::wstring UTF16ToWideAndAdjustOffset(const string16& utf16, + size_t* offset_for_adjustment); #endif // BASE_UTF_OFFSET_STRING_CONVERSIONS_H_ |