Home
last modified time | relevance | path

Searched refs:endpos (Results 1 - 25 of 37) sorted by relevance

12

/third_party/curl/src/
H A Dtool_formparse.c471 char *endpos; in get_param_part() local
490 *pdata = get_param_word(config, &p, &endpos, endchar); in get_param_part()
493 while(endpos > *pdata && ISSPACE(endpos[-1])) in get_param_part()
494 endpos--; in get_param_part()
496 *endpos = '\0'; in get_param_part()
529 filename = get_param_word(config, &p, &endpos, endchar); in get_param_part()
532 while(endpos > filename && ISSPACE(endpos[-1])) in get_param_part()
533 endpos in get_param_part()
[all...]
/third_party/python/Objects/stringlib/
H A Dcodecs.h314 Py_ssize_t startpos, endpos, newpos; in utf8_encoder() local
321 endpos = startpos+1; in utf8_encoder()
323 while ((endpos < size) && Py_UNICODE_IS_SURROGATE(data[endpos])) in utf8_encoder()
324 endpos++; in utf8_encoder()
327 writer->overallocate = (endpos < size); in utf8_encoder()
332 memset(p, '?', endpos - startpos); in utf8_encoder()
333 p += (endpos - startpos); in utf8_encoder()
336 i += (endpos - startpos - 1); in utf8_encoder()
340 for (k=startpos; k<endpos; in utf8_encoder()
[all...]
/third_party/python/Modules/_sre/clinic/
H A Dsre.c.h161 "match($self, /, string, pos=0, endpos=sys.maxsize)\n"
172 Py_ssize_t endpos);
178 static const char * const _keywords[] = {"string", "pos", "endpos", NULL}; in _sre_SRE_Pattern_match()
184 Py_ssize_t endpos = PY_SSIZE_T_MAX; in _sre_SRE_Pattern_match() local
221 endpos = ival; in _sre_SRE_Pattern_match()
224 return_value = _sre_SRE_Pattern_match_impl(self, cls, string, pos, endpos); in _sre_SRE_Pattern_match()
231 "fullmatch($self, /, string, pos=0, endpos=sys.maxsize)\n"
242 Py_ssize_t endpos);
248 static const char * const _keywords[] = {"string", "pos", "endpos", NULL}; in _sre_SRE_Pattern_fullmatch()
254 Py_ssize_t endpos in _sre_SRE_Pattern_fullmatch() local
326 Py_ssize_t endpos = PY_SSIZE_T_MAX; _sre_SRE_Pattern_search() local
395 Py_ssize_t endpos = PY_SSIZE_T_MAX; _sre_SRE_Pattern_findall() local
467 Py_ssize_t endpos = PY_SSIZE_T_MAX; _sre_SRE_Pattern_finditer() local
536 Py_ssize_t endpos = PY_SSIZE_T_MAX; _sre_SRE_Pattern_scanner() local
[all...]
/third_party/python/Tools/scripts/
H A Dparseentities.py19 def parse(text,pos=0,endpos=None):
22 if endpos is None:
23 endpos = len(text)
26 m = entityRE.search(text,pos,endpos)
/third_party/rust/crates/regex/bench/src/ffi/
H A Dre2.cpp26 int startpos, int endpos) { in re2_regexp_match()
30 return cpp_re->Match(cpp_text, startpos, endpos, RE2::UNANCHORED, in re2_regexp_match()
35 int startpos, int endpos, in re2_regexp_find()
42 matched = cpp_re->Match(cpp_text, startpos, endpos, RE2::UNANCHORED, in re2_regexp_find()
25 re2_regexp_match(re2_regexp *re, re2_string text, int startpos, int endpos) re2_regexp_match() argument
34 re2_regexp_find(re2_regexp *re, re2_string text, int startpos, int endpos, int *match_start, int *match_end) re2_regexp_find() argument
/third_party/python/Modules/
H A D_heapqmodule.c72 Py_ssize_t startpos, endpos, childpos, limit; in siftup() local
77 endpos = PyList_GET_SIZE(heap); in siftup()
79 if (pos >= endpos) { in siftup()
86 limit = endpos >> 1; /* smallest pos that has no child */ in siftup()
90 if (childpos + 1 < endpos) { in siftup()
102 if (endpos != PyList_GET_SIZE(heap)) { in siftup()
441 Py_ssize_t startpos, endpos, childpos, limit; in siftup_max() local
446 endpos = PyList_GET_SIZE(heap); in siftup_max()
448 if (pos >= endpos) { in siftup_max()
455 limit = endpos >> in siftup_max()
[all...]
/third_party/ltp/tools/sparse/sparse-src/
H A Dc2xml.c87 if (sym->endpos.type) { in new_sym_node()
88 newNumProp(node, "end-line", sym->endpos.line); in new_sym_node()
89 newNumProp(node, "end-col", sym->endpos.pos); in new_sym_node()
90 if (sym->pos.stream != sym->endpos.stream) in new_sym_node()
91 newProp(node, "end-file", stream_name(sym->endpos.stream)); in new_sym_node()
244 sym->endpos = *pos; in examine_macro()
246 sym->endpos = sym->pos; in examine_macro()
/third_party/python/Lib/html/
H A Dparser.py302 endpos = self.check_for_whole_start_tag(i)
303 if endpos < 0:
304 return endpos
306 self.__starttag_text = rawdata[i:endpos]
314 while k < endpos:
329 end = rawdata[k:endpos].strip()
331 self.handle_data(rawdata[i:endpos])
332 return endpos
340 return endpos
/third_party/python/Lib/
H A Dheapq.py261 endpos = len(heap)
266 while childpos < endpos:
269 if rightpos < endpos and not heap[childpos] < heap[rightpos]:
297 endpos = len(heap)
302 while childpos < endpos:
305 if rightpos < endpos and not heap[rightpos] < heap[childpos]:
H A D_pyio.py2584 pos = endpos = None
2590 endpos = pos + 1
2608 endpos = nlpos + 1
2612 endpos = crpos + 1
2616 endpos = nlpos + 1
2620 endpos = crpos + 2
2624 endpos = crpos + 1
2630 endpos = pos + len(self._readnl)
2634 endpos = size # reached length size
2649 if size >= 0 and endpos > siz
[all...]
/third_party/python/Modules/_sre/
H A Dsre.c470 state->endpos = end; in state_init()
636 endpos: Py_ssize_t(c_default="PY_SSIZE_T_MAX") = sys.maxsize
644 Py_ssize_t endpos) in _sre_SRE_Pattern_match_impl()
652 if (!state_init(&state, (PatternObject *)self, string, pos, endpos)) in _sre_SRE_Pattern_match_impl()
679 endpos: Py_ssize_t(c_default="PY_SSIZE_T_MAX") = sys.maxsize
687 Py_ssize_t endpos) in _sre_SRE_Pattern_fullmatch_impl()
695 if (!state_init(&state, self, string, pos, endpos)) in _sre_SRE_Pattern_fullmatch_impl()
723 endpos: Py_ssize_t(c_default="PY_SSIZE_T_MAX") = sys.maxsize
733 Py_ssize_t endpos) in _sre_SRE_Pattern_search_impl()
741 if (!state_init(&state, self, string, pos, endpos)) in _sre_SRE_Pattern_search_impl()
642 _sre_SRE_Pattern_match_impl(PatternObject *self, PyTypeObject *cls, PyObject *string, Py_ssize_t pos, Py_ssize_t endpos) _sre_SRE_Pattern_match_impl() argument
685 _sre_SRE_Pattern_fullmatch_impl(PatternObject *self, PyTypeObject *cls, PyObject *string, Py_ssize_t pos, Py_ssize_t endpos) _sre_SRE_Pattern_fullmatch_impl() argument
731 _sre_SRE_Pattern_search_impl(PatternObject *self, PyTypeObject *cls, PyObject *string, Py_ssize_t pos, Py_ssize_t endpos) _sre_SRE_Pattern_search_impl() argument
798 _sre_SRE_Pattern_findall_impl(PatternObject *self, PyObject *string, Py_ssize_t pos, Py_ssize_t endpos) _sre_SRE_Pattern_findall_impl() argument
899 _sre_SRE_Pattern_finditer_impl(PatternObject *self, PyTypeObject *cls, PyObject *string, Py_ssize_t pos, Py_ssize_t endpos) _sre_SRE_Pattern_finditer_impl() argument
936 _sre_SRE_Pattern_scanner_impl(PatternObject *self, PyTypeObject *cls, PyObject *string, Py_ssize_t pos, Py_ssize_t endpos) _sre_SRE_Pattern_scanner_impl() argument
2672 pattern_scanner(_sremodulestate *module_state, PatternObject *self, PyObject *string, Py_ssize_t pos, Py_ssize_t endpos) pattern_scanner() argument
[all...]
H A Dsre.h49 Py_ssize_t pos, endpos; /* current target slice */ member
71 Py_ssize_t pos, endpos; member
/third_party/python/Modules/_io/
H A Dbytesio.c199 size_t endpos = (size_t)self->pos + len; in write_bytes() local
200 if (endpos > (size_t)PyBytes_GET_SIZE(self->buf)) { in write_bytes()
201 if (resize_buffer(self, endpos) < 0) { in write_bytes()
207 if (unshare_buffer(self, Py_MAX(endpos, (size_t)self->string_size)) < 0) { in write_bytes()
229 self->pos = endpos; in write_bytes()
232 if ((size_t)self->string_size < endpos) { in write_bytes()
233 self->string_size = endpos; in write_bytes()
H A Dtextio.c2111 Py_ssize_t start, endpos, chunked, offset_to_buffer; in _textiowrapper_readline() local
2147 start = endpos = offset_to_buffer = 0; in _textiowrapper_readline()
2173 endpos = _PyIO_find_line_ending( in _textiowrapper_readline()
2179 if (endpos >= 0) { in _textiowrapper_readline()
2180 endpos += start; in _textiowrapper_readline()
2181 if (limit >= 0 && (endpos - start) + chunked >= limit) in _textiowrapper_readline()
2182 endpos = start + limit - chunked; in _textiowrapper_readline()
2186 /* We can put aside up to `endpos` */ in _textiowrapper_readline()
2187 endpos = consumed + start; in _textiowrapper_readline()
2188 if (limit >= 0 && (endpos in _textiowrapper_readline()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
H A Dtncc.c752 char *endpos; in tncc_process_if_tnccs() local
763 endpos = end; in tncc_process_if_tnccs()
767 *endpos = '<'; in tncc_process_if_tnccs()
775 *endpos = '<'; in tncc_process_if_tnccs()
798 char *xml, *xmlend, *endpos; in tncc_process_if_tnccs() local
808 endpos = end; in tncc_process_if_tnccs()
812 *endpos = '<'; in tncc_process_if_tnccs()
828 *endpos = '<'; in tncc_process_if_tnccs()
837 *endpos = '<'; in tncc_process_if_tnccs()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/
H A Dtncs.c840 char *endpos; in tncs_process_if_tnccs() local
851 endpos = end; in tncs_process_if_tnccs()
855 *endpos = '<'; in tncs_process_if_tnccs()
863 *endpos = '<'; in tncs_process_if_tnccs()
886 char *xml, *xmlend, *endpos; in tncs_process_if_tnccs() local
896 endpos = end; in tncs_process_if_tnccs()
900 *endpos = '<'; in tncs_process_if_tnccs()
916 *endpos = '<'; in tncs_process_if_tnccs()
925 *endpos = '<'; in tncs_process_if_tnccs()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
H A Dtncc.c751 char *endpos; in tncc_process_if_tnccs() local
762 endpos = end; in tncc_process_if_tnccs()
766 *endpos = '<'; in tncc_process_if_tnccs()
774 *endpos = '<'; in tncc_process_if_tnccs()
797 char *xml, *xmlend, *endpos; in tncc_process_if_tnccs() local
807 endpos = end; in tncc_process_if_tnccs()
811 *endpos = '<'; in tncc_process_if_tnccs()
827 *endpos = '<'; in tncc_process_if_tnccs()
836 *endpos = '<'; in tncc_process_if_tnccs()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
H A Dtncs.c839 char *endpos; in tncs_process_if_tnccs() local
850 endpos = end; in tncs_process_if_tnccs()
854 *endpos = '<'; in tncs_process_if_tnccs()
862 *endpos = '<'; in tncs_process_if_tnccs()
885 char *xml, *xmlend, *endpos; in tncs_process_if_tnccs() local
895 endpos = end; in tncs_process_if_tnccs()
899 *endpos = '<'; in tncs_process_if_tnccs()
915 *endpos = '<'; in tncs_process_if_tnccs()
924 *endpos = '<'; in tncs_process_if_tnccs()
/third_party/protobuf/src/google/protobuf/io/
H A Dprinter.cc145 int endpos = end - text; in Print() local
147 std::string varname(text + pos, endpos - pos); in Print()
177 i = endpos; in Print()
178 pos = endpos + 1; in Print()
/third_party/python/Tools/peg_generator/pegen/
H A Dparser.py299 endpos = 0
301 endpos = file.tell()
303 endpos = 0
325 if endpos:
326 print(f" ({endpos} bytes)", end="")
/third_party/python/Lib/idlelib/
H A Dpyparse.py515 endpos = code.find('\n', startpos) + 1
517 while i < endpos:
527 i = _match_stringre(code, i, endpos).end()
544 found = re.match(r"\s*\\", code[i:endpos]) is None
/third_party/NuttX/fs/tmpfs/
H A Dfs_tmpfs.c1051 loff_t endpos; in tmpfs_read() local
1075 endpos = startpos + buflen; in tmpfs_read()
1077 if (endpos > tfo->tfo_size) in tmpfs_read()
1079 endpos = tfo->tfo_size; in tmpfs_read()
1080 nread = endpos - startpos; in tmpfs_read()
1111 loff_t endpos; in tmpfs_readpage() local
1135 endpos = startpos + PAGE_SIZE; in tmpfs_readpage()
1137 if (endpos > tfo->tfo_size) in tmpfs_readpage()
1139 endpos = tfo->tfo_size; in tmpfs_readpage()
1140 nread = endpos in tmpfs_readpage()
1252 loff_t endpos; tmpfs_write() local
[all...]
/third_party/json/tools/cpplint/
H A Dcpplint.py2124 def FindStartOfExpressionInLine(line, endpos, stack):
2132 endpos: start searching at this position.
2133 stack: nesting stack at endpos.
2140 i = endpos
4105 (endline, endlinenum, endpos) = CloseExpression(
4108 if endpos > -1:
4109 trailing_text = endline[endpos:]
4282 (endline, _, endpos) = CloseExpression(clean_lines, linenum, pos)
4283 brace_on_right = endline[endpos:].find('{') != -1
4311 endline, endlinenum, endpos
[all...]
/third_party/node/deps/icu-small/source/tools/escapesrc/
H A Descapesrc.cpp164 bool fixu8(std::string &linestr, size_t origpos, size_t &endpos) { in fixu8() argument
168 for(;pos<endpos;pos++) { in fixu8()
196 linestr.replace(origpos, (endpos-origpos+1), outstr); in fixu8()
/third_party/icu/icu4c/source/tools/escapesrc/
H A Descapesrc.cpp164 bool fixu8(std::string &linestr, size_t origpos, size_t &endpos) { in fixu8() argument
168 for(;pos<endpos;pos++) { in fixu8()
196 linestr.replace(origpos, (endpos-origpos+1), outstr); in fixu8()

Completed in 34 milliseconds

12