Home | History | Annotate | Download | only in strings

Lines Matching refs:c_str

27 bool ParseInt32(const char *c_str, int32 *value) {
37 // If there were no digits at all, strtol() sets temp to be c_str (the start
39 *value = strtol(c_str, &temp, 0); // NOLINT
41 // temp != c_str means that the input string contained at least one digit (see
44 return (temp != c_str) && (*temp == '\0');
47 bool ParseInt64(const char *c_str, int64 *value) {
49 *value = strtoll(c_str, &temp, 0); // NOLINT
52 return (temp != c_str) && (*temp == '\0');
55 bool ParseDouble(const char *c_str, double *value) {
57 *value = strtod(c_str, &temp);
60 return (temp != c_str) && (*temp == '\0');