diff options
Diffstat (limited to 'base/include/android-base/parseint.h')
-rw-r--r-- | base/include/android-base/parseint.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/base/include/android-base/parseint.h b/base/include/android-base/parseint.h index bb54c99b8..55f1ed3ea 100644 --- a/base/include/android-base/parseint.h +++ b/base/include/android-base/parseint.h @@ -27,9 +27,9 @@ namespace android { namespace base { // Parses the unsigned decimal or hexadecimal integer in the string 's' and sets -// 'out' to that value. Optionally allows the caller to define a 'max' beyond -// which otherwise valid values will be rejected. Returns boolean success; 'out' -// is untouched if parsing fails. +// 'out' to that value if it is specified. Optionally allows the caller to define +// a 'max' beyond which otherwise valid values will be rejected. Returns boolean +// success; 'out' is untouched if parsing fails. template <typename T> bool ParseUint(const char* s, T* out, T max = std::numeric_limits<T>::max(), bool allow_suffixes = false) { @@ -72,9 +72,9 @@ bool ParseByteCount(const std::string& s, T* out, T max = std::numeric_limits<T> } // Parses the signed decimal or hexadecimal integer in the string 's' and sets -// 'out' to that value. Optionally allows the caller to define a 'min' and 'max' -// beyond which otherwise valid values will be rejected. Returns boolean -// success; 'out' is untouched if parsing fails. +// 'out' to that value if it is specified. Optionally allows the caller to define +// a 'min' and 'max' beyond which otherwise valid values will be rejected. Returns +// boolean success; 'out' is untouched if parsing fails. template <typename T> bool ParseInt(const char* s, T* out, T min = std::numeric_limits<T>::min(), |