Lines Matching refs:endptr
23 return the NaN or Infinity as a double and set *endptr to point just beyond
25 set *endptr to point to the start of the string. */
30 _Py_parse_inf_or_nan(const char *p, char **endptr)
58 *endptr = (char *)s;
65 _Py_parse_inf_or_nan(const char *p, char **endptr)
93 *endptr = (char *)s;
102 * @endptr: if non-%NULL, it returns the character after
131 _PyOS_ascii_strtod(const char *nptr, char **endptr)
142 result = _Py_dg_strtod(nptr, endptr);
145 if (*endptr == nptr)
147 result = _Py_parse_inf_or_nan(nptr, endptr);
164 _PyOS_ascii_strtod(const char *nptr, char **endptr)
189 val = _Py_parse_inf_or_nan(nptr, endptr);
190 if (*endptr != nptr)
260 *endptr = (char *)nptr;
300 *endptr = fail_pos;
305 *endptr = (char*)nptr;
317 If endptr is NULL, try to convert the whole string. Raise ValueError and
321 If endptr is non-NULL, try to convert as much of the string as possible.
323 floating-point number then *endptr is set to point to the beginning of the
330 and *endptr will point just past the end of the converted value.
338 char **endptr,
351 else if (!endptr && (fail_pos == s || *fail_pos != '\0'))
366 if (endptr != NULL)
367 *endptr = fail_pos;