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

Side by Side Diff: third_party/crashpad/crashpad/util/stdlib/string_number_conversion.h

Issue 2478633002: Update Crashpad to b47bf6c250c6b825dee1c5fbad9152c2c962e828 (Closed)
Patch Set: mac comment 2 Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 //! 49 //!
50 //! \return `true` if a perfect conversion could be performed, with \a number 50 //! \return `true` if a perfect conversion could be performed, with \a number
51 //! set appropriately. `false` if a perfect conversion was not possible. 51 //! set appropriately. `false` if a perfect conversion was not possible.
52 //! 52 //!
53 //! \note The interface in `base/strings/string_number_conversions.h` doesn’t 53 //! \note The interface in `base/strings/string_number_conversions.h` doesn’t
54 //! allow arbitrary bases based on whether the string begins with a prefix 54 //! allow arbitrary bases based on whether the string begins with a prefix
55 //! indicating its base. The functions here are provided for situations 55 //! indicating its base. The functions here are provided for situations
56 //! where such prefix recognition is desirable. 56 //! where such prefix recognition is desirable.
57 bool StringToNumber(const base::StringPiece& string, int* number); 57 bool StringToNumber(const base::StringPiece& string, int* number);
58 bool StringToNumber(const base::StringPiece& string, unsigned int* number); 58 bool StringToNumber(const base::StringPiece& string, unsigned int* number);
59 bool StringToNumber(const base::StringPiece& string, uint64_t* number);
59 //! \} 60 //! \}
60 61
61 } // namespace crashpad 62 } // namespace crashpad
62 63
63 #endif // CRASHPAD_UTIL_STDLIB_STRING_NUMBER_CONVERSION_H_ 64 #endif // CRASHPAD_UTIL_STDLIB_STRING_NUMBER_CONVERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698