Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/
Dtextwrap.py200 def _handle_long_word(self, reversed_chunks, cur_line, cur_len, width): argument
218 cur_line.append(reversed_chunks[-1][:space_left])
224 elif not cur_line:
225 cur_line.append(reversed_chunks.pop())
265 cur_line = []
287 cur_line.append(chunks.pop())
297 self._handle_long_word(chunks, cur_line, cur_len, width)
298 cur_len = sum(map(len, cur_line))
301 if self.drop_whitespace and cur_line and cur_line[-1].strip() == '':
302 cur_len -= len(cur_line[-1])
[all …]
/external/python/cpython2/Lib/
Dtextwrap.py210 def _handle_long_word(self, reversed_chunks, cur_line, cur_len, width): argument
228 cur_line.append(reversed_chunks[-1][:space_left])
234 elif not cur_line:
235 cur_line.append(reversed_chunks.pop())
268 cur_line = []
290 cur_line.append(chunks.pop())
300 self._handle_long_word(chunks, cur_line, cur_len, width)
303 if self.drop_whitespace and cur_line and cur_line[-1].strip() == '':
304 del cur_line[-1]
308 if cur_line:
[all …]
/external/googletest/googletest/scripts/
Dpump.py707 def IsSingleLineComment(cur_line): argument
708 return '//' in cur_line
711 def IsInPreprocessorDirective(prev_lines, cur_line): argument
712 if cur_line.lstrip().startswith('#'):
729 cur_line = ''
731 if len((cur_line + seg).rstrip()) < max_len:
732 cur_line += seg
734 if cur_line.strip() != '':
735 output.append(prefix + cur_line.rstrip())
736 cur_line = seg.lstrip()
[all …]
/external/google-breakpad/src/testing/gtest/scripts/
Dpump.py707 def IsComment(cur_line): argument
708 return '//' in cur_line
711 def IsInPreprocessorDirevative(prev_lines, cur_line): argument
712 if cur_line.lstrip().startswith('#'):
729 cur_line = ''
731 if len((cur_line + seg).rstrip()) < max_len:
732 cur_line += seg
734 if cur_line.strip() != '':
735 output.append(prefix + cur_line.rstrip())
736 cur_line = seg.lstrip()
[all …]
/external/grpc-grpc/src/core/lib/http/
Dparser.cc41 uint8_t* beg = parser->cur_line; in handle_response_line()
82 uint8_t* beg = parser->cur_line; in handle_request_line()
156 uint8_t* beg = parser->cur_line; in add_header()
275 parser->cur_line[parser->cur_line_length - 2] == '\r' && in check_line()
276 parser->cur_line[parser->cur_line_length - 1] == '\n') { in check_line()
282 parser->cur_line[parser->cur_line_length - 2] == '\n' && in check_line()
283 parser->cur_line[parser->cur_line_length - 1] == '\r') { in check_line()
289 parser->cur_line[parser->cur_line_length - 1] == '\n') { in check_line()
309 parser->cur_line[parser->cur_line_length] = byte; in addbyte()
Dparser.h94 uint8_t cur_line[GRPC_HTTP_PARSER_MAX_HEADER_LENGTH]; member
/external/python/cpython2/Lib/distutils/
Dfancy_getopt.py430 cur_line = [] # list of chunks (to-be-joined)
436 cur_line.append(chunks[0])
441 if cur_line and cur_line[-1][0] == ' ':
442 del cur_line[-1]
451 cur_line.append(chunks[0][0:width])
462 lines.append(string.join(cur_line, ''))
/external/python/cpython3/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))
/external/scapy/scapy/
Dmain.py354 cur_line = []
358 if not cur_line or (_len(cur_line) + len(quote[0]) - 1 <= max_len):
359 cur_line.append(quote.pop(0))
361 lines.append(' | %s' % ' '.join(cur_line))
362 cur_line = []
363 if cur_line:
364 lines.append(' | %s' % ' '.join(cur_line))
365 cur_line = []
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_align.c616 int cur_line = -1; in do_test_single() local
645 cur_line = -1; in do_test_single()
646 sscanf(line_ptr, "%u: ", &cur_line); in do_test_single()
647 if (cur_line == m.line) in do_test_single()
/external/libffi/testsuite/lib/
Dlibffi.exp240 while { [gets $fd cur_line]>=0 } {
241 if [string match "*$pattern*" $cur_line] then {
/external/python/cpython2/Modules/_ctypes/libffi/testsuite/lib/
Dlibffi.exp240 while { [gets $fd cur_line]>=0 } {
241 if [string match "*$pattern*" $cur_line] then {
/external/vulkan-validation-layers/layers/
Dgpu_validation.cpp755 std::string cur_line; in ReadOpSource() local
757 while (std::getline(in_stream, cur_line)) { in ReadOpSource()
758 opsource_lines.push_back(cur_line); in ReadOpSource()
762 while (std::getline(in_stream, cur_line)) { in ReadOpSource()
763 opsource_lines.push_back(cur_line); in ReadOpSource()
/external/webp/src/dsp/
Ddsp.h657 uint8_t* cur_line, int width);