Lines Matching refs:input_chars
202 Py_ssize_t input_chars; in ascii_escape_unicode() local
211 input_chars = PyUnicode_GET_SIZE(pystr); in ascii_escape_unicode()
214 output_size = input_chars; in ascii_escape_unicode()
223 if (PY_SSIZE_T_MAX / MAX_EXPANSION < input_chars || in ascii_escape_unicode()
224 PY_SSIZE_T_MAX - 2 < input_chars * MAX_EXPANSION) in ascii_escape_unicode()
227 max_output_size = 2 + (input_chars * MAX_EXPANSION); in ascii_escape_unicode()
235 for (i = 0; i < input_chars; i++) { in ascii_escape_unicode()
272 Py_ssize_t input_chars; in ascii_escape_str() local
281 input_chars = PyString_GET_SIZE(pystr); in ascii_escape_str()
285 for (i = 0; i < input_chars; i++) { in ascii_escape_str()
290 for (j = i; j < input_chars; j++) { in ascii_escape_str()
295 uni = PyUnicode_DecodeUTF8(input_str, input_chars, "strict"); in ascii_escape_str()
308 output_size = input_chars; in ascii_escape_str()
310 if (i != input_chars) { in ascii_escape_str()
319 if (PY_SSIZE_T_MAX / MIN_EXPANSION < input_chars || in ascii_escape_str()
320 PY_SSIZE_T_MAX - 2 < input_chars * MIN_EXPANSION) in ascii_escape_str()
323 max_output_size = 2 + (input_chars * MIN_EXPANSION); in ascii_escape_str()
335 for (; i < input_chars; i++) { in ascii_escape_str()