OLD | NEW |
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 Loading... |
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, int64_t* number); |
59 bool StringToNumber(const base::StringPiece& string, uint64_t* number); | 60 bool StringToNumber(const base::StringPiece& string, uint64_t* number); |
60 //! \} | 61 //! \} |
61 | 62 |
62 } // namespace crashpad | 63 } // namespace crashpad |
63 | 64 |
64 #endif // CRASHPAD_UTIL_STDLIB_STRING_NUMBER_CONVERSION_H_ | 65 #endif // CRASHPAD_UTIL_STDLIB_STRING_NUMBER_CONVERSION_H_ |
OLD | NEW |