Home
last modified time | relevance | path

Searched refs:cur_line (Results 1 – 11 of 11) sorted by relevance

/third_party/python/Lib/
Dtextwrap.py200 def _handle_long_word(self, reversed_chunks, cur_line, cur_len, width): argument
226 cur_line.append(chunk[:end])
232 elif not cur_line:
233 cur_line.append(reversed_chunks.pop())
273 cur_line = []
295 cur_line.append(chunks.pop())
305 self._handle_long_word(chunks, cur_line, cur_len, width)
306 cur_len = sum(map(len, cur_line))
309 if self.drop_whitespace and cur_line and cur_line[-1].strip() == '':
310 cur_len -= len(cur_line[-1])
[all …]
/third_party/ffmpeg/libavcodec/
Dttmlenc.c48 AVBPrint cur_line = { 0 }; in ttml_text_cb() local
51 av_bprint_init(&cur_line, len, AV_BPRINT_SIZE_UNLIMITED); in ttml_text_cb()
53 av_bprint_append_data(&cur_line, text, len); in ttml_text_cb()
54 if (!av_bprint_is_complete(&cur_line)) { in ttml_text_cb()
57 av_bprint_finalize(&cur_line, NULL); in ttml_text_cb()
62 av_bprint_escape(buffer, cur_line.str, NULL, AV_ESCAPE_MODE_XML, in ttml_text_cb()
65 av_bprint_finalize(&cur_line, NULL); in ttml_text_cb()
/third_party/grpc/src/core/lib/http/
Dparser.cc41 uint8_t* beg = parser->cur_line; in handle_response_line()
94 uint8_t* beg = parser->cur_line; in handle_request_line()
176 uint8_t* beg = parser->cur_line; in add_header()
294 parser->cur_line[parser->cur_line_length - 2] == '\r' && in check_line()
295 parser->cur_line[parser->cur_line_length - 1] == '\n') { in check_line()
301 parser->cur_line[parser->cur_line_length - 2] == '\n' && in check_line()
302 parser->cur_line[parser->cur_line_length - 1] == '\r') { in check_line()
308 parser->cur_line[parser->cur_line_length - 1] == '\n') { in check_line()
329 parser->cur_line[parser->cur_line_length] = byte; in addbyte()
Dparser.h94 uint8_t cur_line[GRPC_HTTP_PARSER_MAX_HEADER_LENGTH]; member
/third_party/python/Parser/
Dpegen_errors.c250 char *cur_line = p->tok->fp_interactive ? p->tok->interactive_src_start : p->tok->str; in get_error_line_from_tokenizer_buffers() local
251 assert(cur_line != NULL); in get_error_line_from_tokenizer_buffers()
254 cur_line = strchr(cur_line, '\n') + 1; in get_error_line_from_tokenizer_buffers()
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.c437 char *cur_line = p->tok->fp_interactive ? p->tok->interactive_src_start : p->tok->str; in get_error_line() local
438 assert(cur_line != NULL); in get_error_line()
441 cur_line = strchr(cur_line, '\n') + 1; in get_error_line()
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()
/third_party/python/Lib/distutils/
Dfancy_getopt.py393 cur_line = [] # list of chunks (to-be-joined)
399 cur_line.append(chunks[0])
404 if cur_line and cur_line[-1][0] == ' ':
405 del cur_line[-1]
413 cur_line.append(chunks[0][0:width])
424 lines.append(''.join(cur_line))
/third_party/gn/src/gn/
Dtokenizer.cc165 int cur_line = 1; in ByteOffsetOfNthLine() local
169 cur_line++; in ByteOffsetOfNthLine()
170 if (cur_line == n) in ByteOffsetOfNthLine()
/third_party/libffi/testsuite/lib/
Dlibffi.exp438 while { [gets $fd cur_line]>=0 } {
439 if [string match "*$pattern*" $cur_line] then {
/third_party/flutter/skia/third_party/externals/libwebp/src/dsp/
Ddsp.h657 uint8_t* cur_line, int width);
/third_party/skia/third_party/externals/libwebp/src/dsp/
Ddsp.h705 uint8_t* cur_line, int width);