/external/icu/icu4c/source/test/cintltst/ |
sorttest.c | 111 printLines(const Line *lines) { 115 const Line *line=lines+i; 137 Line *lines, *p; local 147 lines=p=(Line *)uprv_malloc(NUM_LINES*sizeof(Line)); 148 uprv_memset(lines, 0, NUM_LINES*sizeof(Line)); /* avoid uninitialized memory */ 163 puts("\n* lines before sorting"); 164 printLines(lines); 166 uprv_sortArray(lines, NUM_LINES, (int32_t)sizeof(Line), 172 puts("* lines after sorting"); 173 printLines(lines); [all...] |
/external/lz4/contrib/gen_manual/ |
gen_manual.cpp | 65 /* get lines until a given terminator */ 100 // fprintf(stderr, "lines=%s\n", line.c_str()); 109 vector<string> input, lines, comments, chapters; local 144 lines = get_lines(input, linenum, "}"); 146 for (l=0; l<lines.size(); l++) { 147 print_line(sout, lines[l]); 166 lines = get_lines(input, ++linenum, ""); 167 for (l=0; l<lines.size(); l++) { 168 print_line(sout, lines[l]); 199 lines = get_lines(input, linenum, "") [all...] |
/external/protobuf/examples/ |
list_people_test.go | 100 "listPeople(%s) =>\n\t%q has %d lines, want %d", 106 lines := len(got) 107 if lines > len(want) { 108 lines = len(want) 110 for i := 0; i < lines; i++ {
|
/external/python/cpython2/Lib/idlelib/ |
FormatParagraph.py | 38 If text is selected, format_paragraph_event will start breaking lines 42 cursor location to determine the paragraph (lines of text surrounded 43 by blank lines) and formats it. 116 lines = data.split("\n") 118 n = len(lines) 119 while i < n and is_all_white(lines[i]): 123 indent1 = get_indent(lines[i]) 124 if i+1 < n and not is_all_white(lines[i+1]): 125 indent2 = get_indent(lines[i+1]) 128 new = lines[:i [all...] |
/external/python/cpython3/Lib/idlelib/ |
paragraph.py | 39 If text is selected, format_paragraph_event will start breaking lines 43 cursor location to determine the paragraph (lines of text surrounded 44 by blank lines) and formats it. 117 lines = data.split("\n") 119 n = len(lines) 120 while i < n and is_all_white(lines[i]): 124 indent1 = get_indent(lines[i]) 125 if i+1 < n and not is_all_white(lines[i+1]): 126 indent2 = get_indent(lines[i+1]) 129 new = lines[:i [all...] |
/external/python/cpython3/Tools/scripts/ |
highlight.py | 19 def combine_range(lines, start, end): 20 'Join content from a range of lines between start and end' 23 return lines[srow-1][scol:ecol], end 24 rows = [lines[srow-1][scol:]] + lines[srow: erow-1] + [lines[erow-1][:ecol]] 31 lines = source.splitlines(True) 32 lines.append('') 33 readline = functools.partial(next, iter(lines), '') 59 text, written = combine_range(lines, written, (srow, scol) [all...] |
/prebuilts/go/darwin-x86/src/runtime/debug/ |
stack_test.go | 42 lines := strings.Split(string(b), "\n") 43 if len(lines) < 6 { 44 t.Fatal("too few lines") 48 check(t, lines[n], code) 50 check(t, lines[n], line)
|
/prebuilts/go/linux-x86/src/runtime/debug/ |
stack_test.go | 42 lines := strings.Split(string(b), "\n") 43 if len(lines) < 6 { 44 t.Fatal("too few lines") 48 check(t, lines[n], code) 50 check(t, lines[n], line)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/command/ |
bdist_wininst.py | 204 lines = []
208 lines.append("[metadata]")
224 lines.append("%s=%s" % (name, escape(data)))
228 lines.append("\n[Setup]")
230 lines.append("install_script=%s" % self.install_script)
231 lines.append("info=%s" % escape(info))
232 lines.append("target_compile=%d" % (not self.no_target_compile))
233 lines.append("target_optimize=%d" % (not self.no_target_optimize))
235 lines.append("target_version=%s" % self.target_version)
237 lines.append("user_access_control=%s" % self.user_access_control) [all...] |
/external/python/cpython2/Lib/distutils/command/ |
bdist_wininst.py | 208 lines = [] 212 lines.append("[metadata]") 228 lines.append("%s=%s" % (name, escape(data))) 232 lines.append("\n[Setup]") 234 lines.append("install_script=%s" % self.install_script) 235 lines.append("info=%s" % escape(info)) 236 lines.append("target_compile=%d" % (not self.no_target_compile)) 237 lines.append("target_optimize=%d" % (not self.no_target_optimize)) 239 lines.append("target_version=%s" % self.target_version) 241 lines.append("user_access_control=%s" % self.user_access_control [all...] |
/external/python/cpython3/Lib/distutils/command/ |
bdist_wininst.py | 195 lines = [] 199 lines.append("[metadata]") 215 lines.append("%s=%s" % (name, escape(data))) 219 lines.append("\n[Setup]") 221 lines.append("install_script=%s" % self.install_script) 222 lines.append("info=%s" % escape(info)) 223 lines.append("target_compile=%d" % (not self.no_target_compile)) 224 lines.append("target_optimize=%d" % (not self.no_target_optimize)) 226 lines.append("target_version=%s" % self.target_version) 228 lines.append("user_access_control=%s" % self.user_access_control [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/distutils/command/ |
bdist_wininst.py | 208 lines = [] 212 lines.append("[metadata]") 228 lines.append("%s=%s" % (name, escape(data))) 232 lines.append("\n[Setup]") 234 lines.append("install_script=%s" % self.install_script) 235 lines.append("info=%s" % escape(info)) 236 lines.append("target_compile=%d" % (not self.no_target_compile)) 237 lines.append("target_optimize=%d" % (not self.no_target_optimize)) 239 lines.append("target_version=%s" % self.target_version) 241 lines.append("user_access_control=%s" % self.user_access_control [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/distutils/command/ |
bdist_wininst.py | 208 lines = [] 212 lines.append("[metadata]") 228 lines.append("%s=%s" % (name, escape(data))) 232 lines.append("\n[Setup]") 234 lines.append("install_script=%s" % self.install_script) 235 lines.append("info=%s" % escape(info)) 236 lines.append("target_compile=%d" % (not self.no_target_compile)) 237 lines.append("target_optimize=%d" % (not self.no_target_optimize)) 239 lines.append("target_version=%s" % self.target_version) 241 lines.append("user_access_control=%s" % self.user_access_control [all...] |
/prebuilts/misc/windows/sdl2/test/ |
testintersections.c | 78 SDL_Rect lines[MAX_LINES]; variable 88 lines[num_lines].x = x1; 89 lines[num_lines].y = y1; 90 lines[num_lines].w = x2; 91 lines[num_lines].h = y2; 115 SDL_RenderDrawLine(renderer, lines[i].x, lines[i].y, lines[i].w, lines[i].h); 167 x1 = lines[j].x [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/command/ |
bdist_wininst.py | 208 lines = [] 212 lines.append("[metadata]") 228 lines.append("%s=%s" % (name, escape(data))) 232 lines.append("\n[Setup]") 234 lines.append("install_script=%s" % self.install_script) 235 lines.append("info=%s" % escape(info)) 236 lines.append("target_compile=%d" % (not self.no_target_compile)) 237 lines.append("target_optimize=%d" % (not self.no_target_optimize)) 239 lines.append("target_version=%s" % self.target_version) 241 lines.append("user_access_control=%s" % self.user_access_control [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/command/ |
bdist_wininst.py | 208 lines = [] 212 lines.append("[metadata]") 228 lines.append("%s=%s" % (name, escape(data))) 232 lines.append("\n[Setup]") 234 lines.append("install_script=%s" % self.install_script) 235 lines.append("info=%s" % escape(info)) 236 lines.append("target_compile=%d" % (not self.no_target_compile)) 237 lines.append("target_optimize=%d" % (not self.no_target_optimize)) 239 lines.append("target_version=%s" % self.target_version) 241 lines.append("user_access_control=%s" % self.user_access_control [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/ |
feedparser.py | 55 # The list of full, pushed lines, in reverse order
101 # Crack into lines, but preserve the newlines on the end of each
113 # and the eol character(s). Gather up a list of lines after
115 lines = []
117 lines.append(parts[i*2] + parts[i*2+1])
118 self.pushlines(lines)
120 def pushlines(self, lines):
121 # Reverse and insert at the front of the lines.
122 self._lines[:0] = lines[::-1]
220 # remaining lines in the input are thrown into the message body. [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/email/ |
feedparser.py | 55 # The list of full, pushed lines, in reverse order 101 # Crack into lines, but preserve the newlines on the end of each 113 # and the eol character(s). Gather up a list of lines after 115 lines = [] 117 lines.append(parts[i*2] + parts[i*2+1]) 118 self.pushlines(lines) 120 def pushlines(self, lines): 121 # Reverse and insert at the front of the lines. 122 self._lines[:0] = lines[::-1] 220 # remaining lines in the input are thrown into the message body [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/email/ |
feedparser.py | 55 # The list of full, pushed lines, in reverse order 101 # Crack into lines, but preserve the newlines on the end of each 113 # and the eol character(s). Gather up a list of lines after 115 lines = [] 117 lines.append(parts[i*2] + parts[i*2+1]) 118 self.pushlines(lines) 120 def pushlines(self, lines): 121 # Reverse and insert at the front of the lines. 122 self._lines[:0] = lines[::-1] 220 # remaining lines in the input are thrown into the message body [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/email/ |
feedparser.py | 55 # The list of full, pushed lines, in reverse order 101 # Crack into lines, but preserve the newlines on the end of each 113 # and the eol character(s). Gather up a list of lines after 115 lines = [] 117 lines.append(parts[i*2] + parts[i*2+1]) 118 self.pushlines(lines) 120 def pushlines(self, lines): 121 # Reverse and insert at the front of the lines. 122 self._lines[:0] = lines[::-1] 220 # remaining lines in the input are thrown into the message body [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/email/ |
feedparser.py | 55 # The list of full, pushed lines, in reverse order 101 # Crack into lines, but preserve the newlines on the end of each 113 # and the eol character(s). Gather up a list of lines after 115 lines = [] 117 lines.append(parts[i*2] + parts[i*2+1]) 118 self.pushlines(lines) 120 def pushlines(self, lines): 121 # Reverse and insert at the front of the lines. 122 self._lines[:0] = lines[::-1] 220 # remaining lines in the input are thrown into the message body [all...] |
/device/google/marlin/health/ |
HealthService.cpp | 102 std::vector<std::string> lines = android::base::Split(version, "\n"); local 103 if (lines.empty()) { 108 if (sscanf(lines[6].c_str(), "ufs version: 0x%7s\n", rev) < 1) { 118 lines = android::base::Split(buffer, "\n"); 119 if (lines.empty()) { 123 for (const auto& line : lines) {
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/ |
patchcheck.py | 65 lines = ["{}:".format(n_files_str(count))]
67 lines.append(" {}".format(path))
68 return "\n".join(lines)
103 lines = f.readlines()
104 new_lines = [ws_re.sub(br'\1', line) for line in lines]
105 if new_lines != lines:
|
/external/autotest/client/common_lib/cros/ |
dbus_send.py | 32 @param headerless_dbus_send_output: list of lines of dbus-send output 109 lines = dbus_send_stdout.strip().splitlines() 111 header = lines[0] 112 lines = lines[1:] 124 token_stream = _build_token_stream(lines)
|
/external/autotest/client/tests/xfstests/ |
xfstests.py | 46 lines = output.split('\n') 47 result_line = lines[-2] 55 detail_line = lines[-3] 82 lines = output.split('\n') 83 result_line = lines[-2] 89 failures_line = re.match(r'Failures: (?P<tests>.*)', lines[-3])
|