Home
last modified time | relevance | path

Searched refs:line_end (Results 1 – 25 of 42) sorted by relevance

12

/external/cpuinfo/src/linux/
Dmultiline.c60 const char* line_end = data_end; in cpuinfo_linux_parse_multiline_file() local
61 if (!callback(line_start, line_end, context, line_number)) { in cpuinfo_linux_parse_multiline_file()
65 const char* line_end; in cpuinfo_linux_parse_multiline_file() local
68 for (line_end = line_start; line_end != data_end; line_end++) { in cpuinfo_linux_parse_multiline_file()
69 if (*line_end == '\n') { in cpuinfo_linux_parse_multiline_file()
78 if (line_end != data_end) { in cpuinfo_linux_parse_multiline_file()
79 if (!callback(line_start, line_end, context, line_number++)) { in cpuinfo_linux_parse_multiline_file()
82 line_start = line_end + 1; in cpuinfo_linux_parse_multiline_file()
84 } while (line_end != data_end); in cpuinfo_linux_parse_multiline_file()
87 const size_t line_length = (size_t) (line_end - line_start); in cpuinfo_linux_parse_multiline_file()
/external/image_io/src/base/
Ddata_line_map.cc36 size_t line_end; in FindDataLines() local
41 line_end = std::min(range_end, segment.Find(line_begin, '\n')); in FindDataLines()
44 data_lines_.back().range = DataRange(line_begin, line_end); in FindDataLines()
45 if (line_end < range_end && in FindDataLines()
46 segment.GetValidatedByte(line_end).value == '\n') { in FindDataLines()
50 data_lines_.emplace_back(next_number++, DataRange(line_begin, line_end)); in FindDataLines()
52 line_begin = line_end + 1; in FindDataLines()
55 line_end == range_end || segment.GetValidatedByte(line_end).value != '\n'; in FindDataLines()
Ddata_context.cc116 size_t line_begin, line_end; in GetClippedAndLineRange() local
124 line_end = std::min(line_begin + 2 * kLimit, clipped_range->GetEnd()); in GetClippedAndLineRange()
127 line_end = std::min(location_ + 2 * kLimit, range_.GetEnd()); in GetClippedAndLineRange()
128 *clipped_range = DataRange(line_begin, line_end); in GetClippedAndLineRange()
130 *line_range = DataRange(line_begin, line_end); in GetClippedAndLineRange()
/external/cpuinfo/src/x86/linux/
Dcpuinfo.c85 const char* line_end, in parse_line() argument
90 if (line_start == line_end) { in parse_line()
96 for (; separator != line_end; separator++) { in parse_line()
102 if (separator == line_end) { in parse_line()
104 (int) (line_end - line_start), line_start); in parse_line()
118 (int) (line_end - line_start), line_start); in parse_line()
124 for (; value_start != line_end; value_start++) { in parse_line()
130 if (value_start == line_end) { in parse_line()
132 (int) (line_end - line_start), line_start); in parse_line()
137 const char* value_end = line_end; in parse_line()
/external/ply/ply/test/
Dyacc_error5.py29 line_start, line_end = t.linespan(3)
31 print("Assignment Error at %d:%d to %d:%d" % (line_start,pos_start,line_end,pos_end))
53 line_start, line_end = t.linespan(2)
55 print("Group at %d:%d to %d:%d" % (line_start,pos_start, line_end, pos_end))
60 line_start, line_end = t.linespan(2)
62 print("Syntax error at %d:%d to %d:%d" % (line_start,pos_start, line_end, pos_end))
/external/libcups/filter/
Drastertohp.c434 *line_end, /* End-of-line byte pointer */ in CompressData() local
448 line_end = line + length; in CompressData()
456 line_end = line + length; in CompressData()
458 line_ptr < line_end; in CompressData()
462 (line_ptr + count) < line_end && in CompressData()
472 line_end = comp_ptr; in CompressData()
481 line_end = line + length; in CompressData()
484 while (line_ptr < line_end) in CompressData()
486 if ((line_ptr + 1) >= line_end) in CompressData()
504 while (line_ptr < (line_end - 1) && in CompressData()
[all …]
Drastertoepson.c418 *line_end, /* End-of-line byte pointer */ in CompressData() local
432 line_end = line + length; in CompressData()
440 for (comp_ptr = (unsigned char *)line; comp_ptr < line_end;) in CompressData()
474 if ((temp & 0x01) && comp_ptr < line_end && *comp_ptr & 0x80) in CompressData()
494 while (line_ptr < line_end) in CompressData()
496 if ((line_ptr + 1) >= line_end) in CompressData()
514 while (line_ptr < (line_end - 1) && in CompressData()
535 while (line_ptr < (line_end - 1) && in CompressData()
551 line_end = comp_ptr; in CompressData()
608 pwrite(line_ptr, (size_t)(line_end - line_ptr)); in CompressData()
Drastertolabel.c909 *line_end, /* End-of-line byte pointer */ in PCLCompress() local
922 line_end = line + length; in PCLCompress()
927 while (line_ptr < line_end) in PCLCompress()
943 if ((count = (unsigned)(line_end - line_ptr)) > 8) in PCLCompress()
955 line_ptr < line_end) in PCLCompress()
961 if (line_ptr == line_end) in PCLCompress()
973 line_ptr < line_end && in PCLCompress()
/external/perfetto/src/traced/probes/system_info/
Dsystem_info_data_source.cc65 std::string::iterator line_end = proc_cpu_info.end(); in Start() local
70 line_end = find(line_start, proc_cpu_info.end(), '\n'); in Start()
71 if (line_end == proc_cpu_info.end()) in Start()
73 std::string line = std::string(line_start, line_end); in Start()
74 line_start = line_end + 1; in Start()
/external/google-breakpad/src/client/linux/minidump_writer/
Dproc_cpuinfo_reader.h70 const char* line_end = line + line_len; in GetNextField() local
84 while (val < line_end && my_isspace(*val)) in GetNextField()
88 value_len_ = static_cast<size_t>(line_end - val); in GetNextField()
/external/curl/lib/vquic/
Dquiche.c547 char *end, *line_end; in http_request() local
580 line_end = memchr(hdbuf, '\r', len); in http_request()
581 if(!line_end) { in http_request()
587 end = memchr(hdbuf, ' ', line_end - hdbuf); in http_request()
599 for(i = (size_t)(line_end - hdbuf); i; --i) { in http_request()
626 hdbuf = line_end + 2; in http_request()
630 line_end = memchr(hdbuf, '\r', len - (hdbuf - (char *)mem)); in http_request()
631 if(!line_end || (line_end == hdbuf)) in http_request()
638 for(end = hdbuf; end < line_end && *end != ':'; ++end) in http_request()
640 if(end == hdbuf || end == line_end) in http_request()
[all …]
Dngtcp2.c1083 char *end, *line_end; in http_request() local
1126 line_end = memchr(hdbuf, '\r', len); in http_request()
1127 if(!line_end) { in http_request()
1133 end = memchr(hdbuf, ' ', line_end - hdbuf); in http_request()
1146 for(i = (size_t)(line_end - hdbuf); i; --i) { in http_request()
1175 hdbuf = line_end + 2; in http_request()
1179 line_end = memchr(hdbuf, '\r', len - (hdbuf - (char *)mem)); in http_request()
1180 if(!line_end || (line_end == hdbuf)) in http_request()
1187 for(end = hdbuf; end < line_end && *end != ':'; ++end) in http_request()
1189 if(end == hdbuf || end == line_end) in http_request()
[all …]
/external/cpuinfo/src/arm/linux/
Dcpuinfo.c665 const char* line_end, in parse_line() argument
670 if (line_start == line_end) { in parse_line()
676 for (; separator != line_end; separator++) { in parse_line()
682 if (separator == line_end) { in parse_line()
684 (int) (line_end - line_start), line_start); in parse_line()
698 (int) (line_end - line_start), line_start); in parse_line()
704 for (; value_start != line_end; value_start++) { in parse_line()
710 if (value_start == line_end) { in parse_line()
712 (int) (line_end - line_start), line_start); in parse_line()
717 const char* value_end = line_end; in parse_line()
/external/selinux/libsemanage/src/
Dsemanage_store.c2505 char *line_end = NULL; in semanage_get_line_end() local
2512 line_end = semanage_strnchr(buf, buf_len, '\n'); in semanage_get_line_end()
2513 if (!line_end) in semanage_get_line_end()
2514 line_end = semanage_strnchr(buf, buf_len, '\r'); in semanage_get_line_end()
2515 if (!line_end) in semanage_get_line_end()
2516 line_end = semanage_strnchr(buf, buf_len, EOF); in semanage_get_line_end()
2518 return line_end; in semanage_get_line_end()
2534 const char *line_buf, *line_end; in semanage_fc_sort() local
2572 while ((line_end = semanage_get_line_end(line_buf, buf_remainder))) { in semanage_fc_sort()
2573 line_len = line_end - line_buf + 1; in semanage_fc_sort()
[all …]
/external/skia/third_party/icu/
Dmake_data_cpp.py30 header, line_begin, line_end, footer = fmt
39 o.write('%s%s%s\n' % (line_begin, line, line_end))
/external/igt-gpu-tools/runner/
Dresultgen.c48 char *line_end = memchr(haystack, '\n', end - haystack); in find_line_starting_with() local
54 if (line_end == NULL) in find_line_starting_with()
56 haystack = line_end + 1; in find_line_starting_with()
68 char *line_end = memchr(haystack, '\n', end - haystack); in find_line_starting_with_either() local
69 size_t linelen = line_end != NULL ? line_end - haystack : end - haystack; in find_line_starting_with_either()
74 if (line_end == NULL) in find_line_starting_with_either()
77 haystack = line_end + 1; in find_line_starting_with_either()
212 char *line_end; in parse_subtest_result() local
244 line_end = memchr(line, '\n', bufend - line); in parse_subtest_result()
245 linelen = line_end != NULL ? line_end - line : bufend - line; in parse_subtest_result()
/external/wpa_supplicant_8/src/eap_server/
Dtncs.c1018 char *config, *end, *pos, *line_end; in tncs_read_config() local
1033 for (pos = config; pos < end; pos = line_end + 1) { in tncs_read_config()
1034 line_end = pos; in tncs_read_config()
1035 while (*line_end != '\n' && *line_end != '\r' && in tncs_read_config()
1036 line_end < end) in tncs_read_config()
1037 line_end++; in tncs_read_config()
1038 *line_end = '\0'; in tncs_read_config()
1043 imv = tncs_parse_imv(id++, pos + 4, line_end, &error); in tncs_read_config()
/external/v8/src/objects/
Dscript.h135 PositionInfo() : line(-1), column(-1), line_start(-1), line_end(-1) {} in PositionInfo()
140 int line_end; // Position of final linebreak character in line. member
/external/wpa_supplicant_8/src/eap_peer/
Dtncc.c1070 char *config, *end, *pos, *line_end; in tncc_read_config() local
1084 for (pos = config; pos < end; pos = line_end + 1) { in tncc_read_config()
1085 line_end = pos; in tncc_read_config()
1086 while (*line_end != '\n' && *line_end != '\r' && in tncc_read_config()
1087 line_end < end) in tncc_read_config()
1088 line_end++; in tncc_read_config()
1089 *line_end = '\0'; in tncc_read_config()
1094 imc = tncc_parse_imc(pos + 4, line_end, &error); in tncc_read_config()
/external/pdfium/xfa/fde/
Dcfde_texteditengine.cpp493 size_t line_end = GetIndexAtEndOfLine(pos); in GetIndexDown() local
494 if (line_end == text_length_) in GetIndexDown()
499 ++line_end; in GetIndexDown()
500 ch = GetChar(line_end); in GetIndexDown()
501 } while (line_end < text_length_ && (ch == '\r' || ch == '\n')); in GetIndexDown()
503 if (line_end == text_length_) in GetIndexDown()
504 return line_end; in GetIndexDown()
511 size_t next_line_end = GetIndexAtEndOfLine(line_end); in GetIndexDown()
512 if (line_end + dist > next_line_end) in GetIndexDown()
515 return line_end + dist; in GetIndexDown()
/external/pdfium/core/fpdfapi/render/
Dcpdf_type3cache.cpp72 int line_end = bFirst ? height : -1; in DetectFirstLastScan() local
73 while (line != line_end) { in DetectFirstLastScan()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_lexer.cc421 size_t line_end = StringPieceFromPointers(loc, buf_.end()).find('\n'); in GetLine() local
423 line_end == absl::string_view::npos ? buf_.end() : loc + line_end; in GetLine()
/external/curl/lib/
Dhttp2.c1867 char *end, *line_end; in http2_send() local
1951 line_end = memchr(hdbuf, '\r', len); in http2_send()
1952 if(!line_end) in http2_send()
1956 end = memchr(hdbuf, ' ', line_end - hdbuf); in http2_send()
1973 for(i = (size_t)(line_end - hdbuf); i; --i) { in http2_send()
2009 hdbuf = line_end + 2; in http2_send()
2013 line_end = memchr(hdbuf, '\r', len - (hdbuf - (char *)mem)); in http2_send()
2014 if(!line_end || (line_end == hdbuf)) in http2_send()
2021 for(end = hdbuf; end < line_end && *end != ':'; ++end) in http2_send()
2023 if(end == hdbuf || end == line_end) in http2_send()
[all …]
/external/gflags/src/
Dgflags.cc1277 const char* line_end = flagfile_contents; in ProcessOptionsFromStringLocked() local
1279 for (; line_end; flagfile_contents = line_end + 1) { in ProcessOptionsFromStringLocked()
1283 line_end = strchr(flagfile_contents, '\r'); in ProcessOptionsFromStringLocked()
1284 if (line_end == NULL) in ProcessOptionsFromStringLocked()
1285 line_end = strchr(flagfile_contents, '\n'); in ProcessOptionsFromStringLocked()
1287 size_t len = line_end ? line_end - flagfile_contents in ProcessOptionsFromStringLocked()
/external/llvm/utils/unittest/googletest/src/
Dgtest-death-test.cc459 const size_t line_end = output.find('\n', at); in FormatDeathTestOutput() local
461 if (line_end == ::std::string::npos) { in FormatDeathTestOutput()
465 ret += output.substr(at, line_end + 1 - at); in FormatDeathTestOutput()
466 at = line_end + 1; in FormatDeathTestOutput()

12