Home
last modified time | relevance | path

Searched refs:next_newline (Results 1 – 2 of 2) sorted by relevance

/third_party/python/Parser/
Dpegen_errors.c257 char *next_newline; in get_error_line_from_tokenizer_buffers() local
258 if ((next_newline = strchr(cur_line, '\n')) == NULL) { // This is the last line in get_error_line_from_tokenizer_buffers()
259 next_newline = cur_line + strlen(cur_line); in get_error_line_from_tokenizer_buffers()
261 return PyUnicode_DecodeUTF8(cur_line, next_newline - cur_line, "replace"); in get_error_line_from_tokenizer_buffers()
Dpegen.c444 char *next_newline; in get_error_line() local
445 if ((next_newline = strchr(cur_line, '\n')) == NULL) { // This is the last line in get_error_line()
446 next_newline = cur_line + strlen(cur_line); in get_error_line()
448 return PyUnicode_DecodeUTF8(cur_line, next_newline - cur_line, "replace"); in get_error_line()