summaryrefslogtreecommitdiffstats
path: root/base/string_util.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-21 22:22:10 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-21 22:22:10 +0000
commit23bb71fb2a8d32adb4f5d9baf36a6b17c2111fa9 (patch)
tree39abb0de36acc80ae452d45d57504242d980536e /base/string_util.h
parent25b63dbaa7974ee2f62928790139611adfae1bad (diff)
downloadchromium_src-23bb71fb2a8d32adb4f5d9baf36a6b17c2111fa9.zip
chromium_src-23bb71fb2a8d32adb4f5d9baf36a6b17c2111fa9.tar.gz
chromium_src-23bb71fb2a8d32adb4f5d9baf36a6b17c2111fa9.tar.bz2
Base: More adjustments to BASE_API and project dependencies to
use base.dll from chrome. BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6877053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82564 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util.h')
-rw-r--r--base/string_util.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/base/string_util.h b/base/string_util.h
index 81d31d3..9864137 100644
--- a/base/string_util.h
+++ b/base/string_util.h
@@ -36,29 +36,28 @@ namespace base {
// Compares the two strings s1 and s2 without regard to case using
// the current locale; returns 0 if they are equal, 1 if s1 > s2, and -1 if
// s2 > s1 according to a lexicographic comparison.
-BASE_API int strcasecmp(const char* s1, const char* s2);
+int strcasecmp(const char* s1, const char* s2);
// Compares up to count characters of s1 and s2 without regard to case using
// the current locale; returns 0 if they are equal, 1 if s1 > s2, and -1 if
// s2 > s1 according to a lexicographic comparison.
-BASE_API int strncasecmp(const char* s1, const char* s2, size_t count);
+int strncasecmp(const char* s1, const char* s2, size_t count);
// Same as strncmp but for char16 strings.
-BASE_API int strncmp16(const char16* s1, const char16* s2, size_t count);
+int strncmp16(const char16* s1, const char16* s2, size_t count);
// Wrapper for vsnprintf that always null-terminates and always returns the
// number of characters that would be in an untruncated formatted
// string, even when truncation occurs.
-BASE_API int vsnprintf(char* buffer, size_t size, const char* format,
- va_list arguments)
+int vsnprintf(char* buffer, size_t size, const char* format, va_list arguments)
PRINTF_FORMAT(3, 0);
// vswprintf always null-terminates, but when truncation occurs, it will either
// return -1 or the number of characters that would be in an untruncated
// formatted string. The actual return value depends on the underlying
// C library's vswprintf implementation.
-BASE_API int vswprintf(wchar_t* buffer, size_t size,
- const wchar_t* format, va_list arguments)
+int vswprintf(wchar_t* buffer, size_t size,
+ const wchar_t* format, va_list arguments)
WPRINTF_FORMAT(3, 0);
// Some of these implementations need to be inlined.
@@ -172,11 +171,11 @@ BASE_API const std::string& EmptyString();
BASE_API const std::wstring& EmptyWString();
BASE_API const string16& EmptyString16();
-extern const wchar_t kWhitespaceWide[];
-extern const char16 kWhitespaceUTF16[];
-extern const char kWhitespaceASCII[];
+BASE_API extern const wchar_t kWhitespaceWide[];
+BASE_API extern const char16 kWhitespaceUTF16[];
+BASE_API extern const char kWhitespaceASCII[];
-extern const char kUtf8ByteOrderMark[];
+BASE_API extern const char kUtf8ByteOrderMark[];
// Removes characters in remove_chars from anywhere in input. Returns true if
// any characters were removed.