Lines Matching refs:numstr
1311 PyObject *numstr; in _match_number_str() local
1367 numstr = PyString_FromStringAndSize(&str[start], idx - start); in _match_number_str()
1368 if (numstr == NULL) in _match_number_str()
1373 rval = PyObject_CallFunctionObjArgs(s->parse_float, numstr, NULL); in _match_number_str()
1376 double d = PyOS_string_to_double(PyString_AS_STRING(numstr), in _match_number_str()
1386 rval = PyObject_CallFunctionObjArgs(s->parse_int, numstr, NULL); in _match_number_str()
1389 rval = PyInt_FromString(PyString_AS_STRING(numstr), NULL, 10); in _match_number_str()
1392 Py_DECREF(numstr); in _match_number_str()
1413 PyObject *numstr; in _match_number_unicode() local
1467 numstr = PyUnicode_FromUnicode(&str[start], idx - start); in _match_number_unicode()
1468 if (numstr == NULL) in _match_number_unicode()
1473 rval = PyObject_CallFunctionObjArgs(s->parse_float, numstr, NULL); in _match_number_unicode()
1476 rval = PyFloat_FromString(numstr, NULL); in _match_number_unicode()
1481 rval = PyObject_CallFunctionObjArgs(s->parse_int, numstr, NULL); in _match_number_unicode()
1483 Py_DECREF(numstr); in _match_number_unicode()