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

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

Issue 2053953002: Add chrome_crash_reporter_client_win.cc to the source file list for chrome_elf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 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 | « base/process/launch_win.cc ('k') | base/strings/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) 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/numerics/safe_conversions.h"
16 #include "base/numerics/safe_math.h" 15 #include "base/numerics/safe_math.h"
17 #include "base/scoped_clear_errno.h" 16 #include "base/scoped_clear_errno.h"
18 #include "base/strings/utf_string_conversions.h"
19 #include "base/third_party/dmg_fp/dmg_fp.h" 17 #include "base/third_party/dmg_fp/dmg_fp.h"
20 18
21 namespace base { 19 namespace base {
22 20
23 namespace { 21 namespace {
24 22
25 template <typename STR, typename INT> 23 template <typename STR, typename INT>
26 struct IntToStringT { 24 struct IntToStringT {
27 static STR IntToString(INT value) { 25 static STR IntToString(INT value) {
28 // log10(2) ~= 0.3 bytes needed per bit or per byte log10(2**8) ~= 2.4. 26 // log10(2) ~= 0.3 bytes needed per bit or per byte log10(2**8) ~= 2.4.
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 bool HexStringToUInt64(const StringPiece& input, uint64_t* output) { 475 bool HexStringToUInt64(const StringPiece& input, uint64_t* output) {
478 return IteratorRangeToNumber<HexIteratorRangeToUInt64Traits>::Invoke( 476 return IteratorRangeToNumber<HexIteratorRangeToUInt64Traits>::Invoke(
479 input.begin(), input.end(), output); 477 input.begin(), input.end(), output);
480 } 478 }
481 479
482 bool HexStringToBytes(const std::string& input, std::vector<uint8_t>* output) { 480 bool HexStringToBytes(const std::string& input, std::vector<uint8_t>* output) {
483 return HexStringToBytesT(input, output); 481 return HexStringToBytesT(input, output);
484 } 482 }
485 483
486 } // namespace base 484 } // namespace base
OLDNEW
« no previous file with comments | « base/process/launch_win.cc ('k') | base/strings/string_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698