Home
last modified time | relevance | path

Searched refs:line_end (Results 1 – 25 of 38) 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.c428 *line_end, /* End-of-line byte pointer */ in CompressData() local
442 line_end = line + length; in CompressData()
450 line_end = line + length; in CompressData()
452 line_ptr < line_end; in CompressData()
456 (line_ptr + count) < line_end && in CompressData()
466 line_end = comp_ptr; in CompressData()
475 line_end = line + length; in CompressData()
478 while (line_ptr < line_end) in CompressData()
480 if ((line_ptr + 1) >= line_end) in CompressData()
498 while (line_ptr < (line_end - 1) && in CompressData()
[all …]
Drastertoepson.c413 *line_end, /* End-of-line byte pointer */ in CompressData() local
427 line_end = line + length; in CompressData()
435 for (comp_ptr = (unsigned char *)line; comp_ptr < line_end;) in CompressData()
469 if ((temp & 0x01) && comp_ptr < line_end && *comp_ptr & 0x80) in CompressData()
489 while (line_ptr < line_end) in CompressData()
491 if ((line_ptr + 1) >= line_end) in CompressData()
509 while (line_ptr < (line_end - 1) && in CompressData()
530 while (line_ptr < (line_end - 1) && in CompressData()
546 line_end = comp_ptr; in CompressData()
603 pwrite(line_ptr, (size_t)(line_end - line_ptr)); in CompressData()
Drastertolabel.c912 *line_end, /* End-of-line byte pointer */ in PCLCompress() local
925 line_end = line + length; in PCLCompress()
930 while (line_ptr < line_end) in PCLCompress()
946 if ((count = (unsigned)(line_end - line_ptr)) > 8) in PCLCompress()
958 line_ptr < line_end) in PCLCompress()
964 if (line_ptr == line_end) in PCLCompress()
976 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/skia/modules/skottie/src/layers/shapelayer/
DPuckerBloat.cpp87 line_end = pts[1]; in onRevalidateEffect() local
89 lerp(line_start, line_end, kCtrlPosFraction), in onRevalidateEffect()
90 lerp(line_start, line_end, 1 - kCtrlPosFraction), in onRevalidateEffect()
91 line_end in onRevalidateEffect()
/external/cpuinfo/src/arm/linux/
Dcpuinfo.c666 const char* line_end, in parse_line() argument
671 if (line_start == line_end) { in parse_line()
677 for (; separator != line_end; separator++) { in parse_line()
683 if (separator == line_end) { in parse_line()
685 (int) (line_end - line_start), line_start); in parse_line()
699 (int) (line_end - line_start), line_start); in parse_line()
705 for (; value_start != line_end; value_start++) { in parse_line()
711 if (value_start == line_end) { in parse_line()
713 (int) (line_end - line_start), line_start); in parse_line()
718 const char* value_end = line_end; in parse_line()
/external/curl/lib/vquic/
Dquiche.c605 char *end, *line_end; in http_request() local
638 line_end = memchr(hdbuf, '\r', len); in http_request()
639 if(!line_end) { in http_request()
645 end = memchr(hdbuf, ' ', line_end - hdbuf); in http_request()
657 for(i = (size_t)(line_end - hdbuf); i; --i) { in http_request()
684 hdbuf = line_end + 2; in http_request()
688 line_end = memchr(hdbuf, '\r', len - (hdbuf - (char *)mem)); in http_request()
689 if(!line_end || (line_end == hdbuf)) in http_request()
696 for(end = hdbuf; end < line_end && *end != ':'; ++end) in http_request()
698 if(end == hdbuf || end == line_end) in http_request()
[all …]
Dngtcp2.c1403 char *end, *line_end; in http_request() local
1447 line_end = memchr(hdbuf, '\r', len); in http_request()
1448 if(!line_end) { in http_request()
1454 end = memchr(hdbuf, ' ', line_end - hdbuf); in http_request()
1467 for(i = (size_t)(line_end - hdbuf); i; --i) { in http_request()
1496 hdbuf = line_end + 2; in http_request()
1500 line_end = memchr(hdbuf, '\r', len - (hdbuf - (char *)mem)); in http_request()
1501 if(!line_end || (line_end == hdbuf)) in http_request()
1508 for(end = hdbuf; end < line_end && *end != ':'; ++end) in http_request()
1510 if(end == hdbuf || end == line_end) in http_request()
[all …]
/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.py32 header, line_begin, line_end, footer = fmt
41 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/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.cc435 size_t line_end = StringPieceFromPointers(loc, buf_.end()).find('\n'); in GetLine() local
437 line_end == absl::string_view::npos ? buf_.end() : loc + line_end; in GetLine()
/external/curl/lib/
Dhttp2.c1850 char *end, *line_end; in http2_send() local
1934 line_end = memchr(hdbuf, '\r', len); in http2_send()
1935 if(!line_end) in http2_send()
1939 end = memchr(hdbuf, ' ', line_end - hdbuf); in http2_send()
1956 for(i = (size_t)(line_end - hdbuf); i; --i) { in http2_send()
1992 hdbuf = line_end + 2; in http2_send()
1996 line_end = memchr(hdbuf, '\r', len - (hdbuf - (char *)mem)); in http2_send()
1997 if(!line_end || (line_end == hdbuf)) in http2_send()
2004 for(end = hdbuf; end < line_end && *end != ':'; ++end) in http2_send()
2006 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