/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
MimeWriter.py | 105 lines = value.split("\n") 106 while lines and not lines[-1]: del lines[-1] 107 while lines and not lines[0]: del lines[0] 108 for i in range(1, len(lines)): 109 lines[i] = " " + lines[i].strip( [all...] |
/external/chromium/net/ftp/ |
ftp_directory_listing_parser_netware_unittest.cc | 32 std::vector<string16> lines(GetSingleLineTestCase(good_cases[i].input)); 35 lines.insert(lines.begin(), ASCIIToUTF16("total 1")); 38 EXPECT_TRUE(ParseFtpDirectoryListingNetware(lines, 59 std::vector<string16> lines(GetSingleLineTestCase(bad_cases[i])); 62 lines.insert(lines.begin(), ASCIIToUTF16("total 1")); 65 EXPECT_FALSE(ParseFtpDirectoryListingNetware(lines,
|
ftp_directory_listing_parser_unittest.cc | 99 std::vector<std::string> lines; local 102 lines.push_back(tokenizer.token()); 104 ASSERT_EQ(8 * entries.size(), lines.size()); 106 for (size_t i = 0; i < lines.size() / 8; i++) { 107 std::string type(lines[8 * i]); 108 std::string name(lines[8 * i + 1]); 110 base::StringToInt64(lines[8 * i + 2], &size); 115 base::StringToInt(lines[8 * i + 3], &year); 116 base::StringToInt(lines[8 * i + 4], &month); 117 base::StringToInt(lines[8 * i + 5], &day_of_month) [all...] |
ftp_directory_listing_parser_ls.h | 22 bool ParseFtpDirectoryListingLs(const std::vector<string16>& lines,
|
ftp_directory_listing_parser_netware.h | 23 const std::vector<string16>& lines,
|
ftp_directory_listing_parser_vms.h | 19 const std::vector<string16>& lines,
|
ftp_directory_listing_parser_windows.h | 19 const std::vector<string16>& lines,
|
/external/chromium_org/net/ftp/ |
ftp_directory_listing_parser_netware_unittest.cc | 35 std::vector<base::string16> lines( 39 lines.insert(lines.begin(), ASCIIToUTF16("total 1")); 42 EXPECT_TRUE(ParseFtpDirectoryListingNetware(lines, 63 std::vector<base::string16> lines(GetSingleLineTestCase(bad_cases[i])); 66 lines.insert(lines.begin(), ASCIIToUTF16("total 1")); 69 EXPECT_FALSE(ParseFtpDirectoryListingNetware(lines,
|
ftp_directory_listing_parser_os2.cc | 19 const std::vector<base::string16>& lines, 21 for (size_t i = 0; i < lines.size(); i++) { 22 if (lines[i].empty()) 26 base::SplitString(CollapseWhitespace(lines[i], false), ' ', &columns); 62 entry.name = FtpUtil::GetStringPartAfterColumns(lines[i], 4);
|
ftp_directory_listing_parser_windows.cc | 19 const std::vector<base::string16>& lines, 21 for (size_t i = 0; i < lines.size(); i++) { 22 if (lines[i].empty()) 26 base::SplitString(CollapseWhitespace(lines[i], false), ' ', &columns); 57 entry.name = FtpUtil::GetStringPartAfterColumns(lines[i], 3);
|
ftp_directory_listing_parser_netware.cc | 39 const std::vector<base::string16>& lines, 42 if (!lines.empty() && !StartsWith(lines[0], ASCIIToUTF16("total "), true)) 45 for (size_t i = 1U; i < lines.size(); i++) { 46 if (lines[i].empty()) 50 base::SplitString(CollapseWhitespace(lines[i], false), ' ', &columns); 86 entry.name = FtpUtil::GetStringPartAfterColumns(lines[i], 7);
|
ftp_directory_listing_parser_os2.h | 19 const std::vector<base::string16>& lines,
|
ftp_directory_listing_parser_vms.h | 19 const std::vector<base::string16>& lines,
|
ftp_directory_listing_parser_windows.h | 19 const std::vector<base::string16>& lines,
|
/external/clang/tools/clang-format/ |
clang-format.py | 39 lines = '%s:%s' % (vim.current.range.start + 1, vim.current.range.end + 1) variable 49 p = subprocess.Popen([binary, '-lines', lines, '-style', style, 68 lines = stdout.split('\n') variable 69 output = json.loads(lines[0]) 70 lines = lines[1:] variable 71 sequence = difflib.SequenceMatcher(None, vim.current.buffer, lines) 74 vim.current.buffer[op[1]:op[2]] = lines[op[3]:op[4]]
|
/external/elfutils/libdwfl/ |
dwfl_getsrclines.c | 57 if (cu->lines == NULL) 67 *nlines = cu->die.cu->lines->nlines;
|
/external/chromium_org/ppapi/ |
generate_ppapi_include_tests.py | 88 def WriteLines(filename, lines): 90 for line in lines: 136 lines = [COPYRIGHT_STRING_C] 137 lines.append('#ifndef PPAPI_TESTS_ALL_C_INCLUDES_H_\n') 138 lines.append('#define PPAPI_TESTS_ALL_C_INCLUDES_H_\n\n') 140 lines.append('#include "ppapi/' + source + '"\n') 141 lines.append('\n#endif /* PPAPI_TESTS_ALL_C_INCLUDES_H_ */\n') 142 WriteLines('tests/all_c_includes.h', lines) 150 lines = [COPYRIGHT_STRING_CC] 151 lines.append('#ifndef PPAPI_TESTS_ALL_CPP_INCLUDES_H_\n' [all...] |
/external/chromium_org/third_party/WebKit/Source/core/rendering/style/ |
StyleDeprecatedFlexibleBoxData.cpp | 36 , lines(RenderStyle::initialBoxLines()) 48 , lines(o.lines) 56 pack == o.pack && orient == o.orient && lines == o.lines;
|
/external/elfutils/libdw/ |
dwarf_decl_file.c | 79 if (cu->lines == NULL) 81 Dwarf_Lines *lines; local 86 (void) INTUSE(dwarf_getsrclines) (&CUDIE (cu), &lines, &nlines); local 87 assert (cu->lines != NULL); 90 if (cu->lines == (void *) -1l)
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/ |
server_process_mock.py | 31 def __init__(self, port_obj=None, name=None, cmd=None, env=None, universal_newlines=False, treat_no_data_as_crash=False, logging=False, lines=None, crashed=False): 33 self.lines = lines or ['#READY'] 50 return self.lines.pop(0) + "\n" 53 first_line = self.lines[0] 55 self.lines.pop(0) 60 result = self.lines[0][:size] 61 self.lines[0] = self.lines[0][size:] 68 # FIXME: We should have tests which intermix stderr and stdout lines [all...] |
/external/chromium/chrome/browser/importer/ |
nss_decryptor.cc | 117 // Splits the file content into lines. 118 std::vector<std::string> lines; local 119 base::SplitString(content, '\n', &lines); 122 if (lines.empty()) 125 if (lines[0] == "#2c") 127 else if (lines[0] == "#2d") 129 else if (lines[0] == "#2e") 142 for (i = 1; i < lines.size() && lines[i].compare(".") != 0; ++i) { 144 form.origin = GURL(lines[i]).ReplaceComponents(rep) [all...] |
/external/chromium_org/chrome/utility/importer/ |
nss_decryptor.cc | 118 // Splits the file content into lines. 119 std::vector<std::string> lines; local 120 base::SplitString(content, '\n', &lines); 123 if (lines.empty()) 126 if (lines[0] == "#2c") 128 else if (lines[0] == "#2d") 130 else if (lines[0] == "#2e") 143 for (i = 1; i < lines.size() && lines[i].compare(".") != 0; ++i) { 145 form.origin = GURL(lines[i]).ReplaceComponents(rep) [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
LoggingPrintStreamTest.java | 46 String[] lines = sout.toString().split("\\n"); local 47 assertEquals(Arrays.asList(lines), out.lines); 56 assertEquals(Arrays.asList("4" + o + "2"), out.lines); 65 assertEquals(Arrays.asList("4" + o, "2"), out.lines); 70 assertEquals(Arrays.asList("Name: Bob"), out.lines); 72 assertEquals(Arrays.asList("Name: Bob", "Employer: Google"), out.lines); 78 assertTrue(out.lines.isEmpty()); 80 assertEquals(Collections.singletonList("42"), out.lines); 86 assertEquals(Arrays.asList("4", "2"), out.lines); 182 final List<String> lines = new ArrayList<String>(); field in class:LoggingPrintStreamTest.TestPrintStream [all...] |
/external/chromium_org/build/ios/ |
PRESUBMIT.py | 18 lines = open(os.path.join('../..', WHITELIST_FILE)).readlines() 19 sorted = all(lines[i] <= lines[i + 1] for i in xrange(len(lines) - 1))
|
/external/chromium_org/components/test/data/autofill/merge/tools/ |
autofill_merge_common.py | 21 lines = [] 24 lines.append("---") 29 lines.append("%s: %s" % (field_type, value)) 31 return '\n'.join(lines)
|