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

Side by Side Diff: base/string_util.h

Issue 118480: GTK: Implement BlockedPopupContainerView for linux. (Closed)
Patch Set: Fix for the CreateBorderBin case. Created 11 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | base/string_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file defines utility functions for working with strings. 5 // This file defines utility functions for working with strings.
6 6
7 #ifndef BASE_STRING_UTIL_H_ 7 #ifndef BASE_STRING_UTIL_H_
8 #define BASE_STRING_UTIL_H_ 8 #define BASE_STRING_UTIL_H_
9 9
10 #include <stdarg.h> // va_list 10 #include <stdarg.h> // va_list
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 std::string::size_type start_offset, 403 std::string::size_type start_offset,
404 const std::string& find_this, 404 const std::string& find_this,
405 const std::string& replace_with); 405 const std::string& replace_with);
406 406
407 // Specialized string-conversion functions. 407 // Specialized string-conversion functions.
408 std::string IntToString(int value); 408 std::string IntToString(int value);
409 std::wstring IntToWString(int value); 409 std::wstring IntToWString(int value);
410 string16 IntToString16(int value); 410 string16 IntToString16(int value);
411 std::string UintToString(unsigned int value); 411 std::string UintToString(unsigned int value);
412 std::wstring UintToWString(unsigned int value); 412 std::wstring UintToWString(unsigned int value);
413 string16 UintToString16(unsigned int value);
413 std::string Int64ToString(int64 value); 414 std::string Int64ToString(int64 value);
414 std::wstring Int64ToWString(int64 value); 415 std::wstring Int64ToWString(int64 value);
415 std::string Uint64ToString(uint64 value); 416 std::string Uint64ToString(uint64 value);
416 std::wstring Uint64ToWString(uint64 value); 417 std::wstring Uint64ToWString(uint64 value);
417 // The DoubleToString methods convert the double to a string format that 418 // The DoubleToString methods convert the double to a string format that
418 // ignores the locale. If you want to use locale specific formatting, use ICU. 419 // ignores the locale. If you want to use locale specific formatting, use ICU.
419 std::string DoubleToString(double value); 420 std::string DoubleToString(double value);
420 std::wstring DoubleToWString(double value); 421 std::wstring DoubleToWString(double value);
421 422
422 // Perform a best-effort conversion of the input string to a numeric type, 423 // Perform a best-effort conversion of the input string to a numeric type,
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 #elif defined(WCHAR_T_IS_UTF32) 621 #elif defined(WCHAR_T_IS_UTF32)
621 typedef uint32 Unsigned; 622 typedef uint32 Unsigned;
622 #endif 623 #endif
623 }; 624 };
624 template<> 625 template<>
625 struct ToUnsigned<short> { 626 struct ToUnsigned<short> {
626 typedef unsigned short Unsigned; 627 typedef unsigned short Unsigned;
627 }; 628 };
628 629
629 #endif // BASE_STRING_UTIL_H_ 630 #endif // BASE_STRING_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/string_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698