Don't preload rarely seen large images
[chromium-blink-merge.git] / third_party / cld / base / string_util.h
blob13147b14a767e4e9815223688f516ad6050ee338
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // This file defines utility functions for working with strings.
7 #ifndef BASE_STRING_UTIL_H_
8 #define BASE_STRING_UTIL_H_
10 #include <string.h>
12 namespace base {
14 #ifdef WIN32
15 // Compare the two strings s1 and s2 without regard to case using
16 // the current locale; returns 0 if they are equal, 1 if s1 > s2, and -1 if
17 // s2 > s1 according to a lexicographic comparison.
18 inline int strcasecmp(const char* s1, const char* s2) {
19 return _stricmp(s1, s2);
21 #else
22 inline int strcasecmp(const char* s1, const char* s2) {
23 return ::strcasecmp(s1, s2);
25 #endif
29 #endif // BASE_STRING_UTIL_H_