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

Side by Side Diff: base/strings/string_number_conversions.cc

Issue 15735027: Use a direct include of utf_string_conversions.h in android_webview/, apps/, ash/, base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « base/stringprintf.cc ('k') | base/strings/string_number_conversions_unittest.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "base/strings/string_number_conversions.h" 5 #include "base/strings/string_number_conversions.h"
6 6
7 #include <ctype.h> 7 #include <ctype.h>
8 #include <errno.h> 8 #include <errno.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <wctype.h> 10 #include <wctype.h>
11 11
12 #include <limits> 12 #include <limits>
13 13
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/scoped_clear_errno.h" 15 #include "base/scoped_clear_errno.h"
16 #include "base/strings/utf_string_conversions.h"
16 #include "base/third_party/dmg_fp/dmg_fp.h" 17 #include "base/third_party/dmg_fp/dmg_fp.h"
17 #include "base/utf_string_conversions.h"
18 18
19 namespace base { 19 namespace base {
20 20
21 namespace { 21 namespace {
22 22
23 template <typename STR, typename INT, typename UINT, bool NEG> 23 template <typename STR, typename INT, typename UINT, bool NEG>
24 struct IntToStringT { 24 struct IntToStringT {
25 // This is to avoid a compiler warning about unary minus on unsigned type. 25 // This is to avoid a compiler warning about unary minus on unsigned type.
26 // For example, say you had the following code: 26 // For example, say you had the following code:
27 // template <typename INT> 27 // template <typename INT>
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 bool HexStringToUInt64(const StringPiece& input, uint64* output) { 507 bool HexStringToUInt64(const StringPiece& input, uint64* output) {
508 return IteratorRangeToNumber<HexIteratorRangeToUInt64Traits>::Invoke( 508 return IteratorRangeToNumber<HexIteratorRangeToUInt64Traits>::Invoke(
509 input.begin(), input.end(), output); 509 input.begin(), input.end(), output);
510 } 510 }
511 511
512 bool HexStringToBytes(const std::string& input, std::vector<uint8>* output) { 512 bool HexStringToBytes(const std::string& input, std::vector<uint8>* output) {
513 return HexStringToBytesT(input, output); 513 return HexStringToBytesT(input, output);
514 } 514 }
515 515
516 } // namespace base 516 } // namespace base
OLDNEW
« no previous file with comments | « base/stringprintf.cc ('k') | base/strings/string_number_conversions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698