Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 102) sorted by relevance

12345

/ndk/sources/host-tools/sed-4.2.1/lib/
Ddirname.c35 size_t length; in dir_len() local
48 for (length = last_component (file) - file; in dir_len()
49 prefix_length < length; length--) in dir_len()
50 if (! ISSLASH (file[length - 1])) in dir_len()
52 return length; in dir_len()
73 size_t length = dir_len (file); in dir_name() local
74 bool append_dot = (length == 0 in dir_name()
76 && length == FILE_SYSTEM_PREFIX_LEN (file) in dir_name()
78 char *dir = xmalloc (length + append_dot + 1); in dir_name()
79 memcpy (dir, file, length); in dir_name()
[all …]
Dobstack.h279 # define obstack_make_room(OBSTACK,length) \ argument
282 int __len = (length); \
295 # define obstack_grow(OBSTACK,where,length) \ argument
298 int __len = (length); \
305 # define obstack_grow0(OBSTACK,where,length) \ argument
308 int __len = (length); \
356 # define obstack_blank(OBSTACK,length) \ argument
359 int __len = (length); \
365 # define obstack_alloc(OBSTACK,length) \ argument
368 obstack_blank (__h, (length)); \
[all …]
Dbasename.c77 size_t length; in base_name() local
85 length = base_len (base); in base_name()
86 if (ISSLASH (base[length])) in base_name()
87 length++; in base_name()
94 char *p = xmalloc (length + 3); in base_name()
97 memcpy (p + 2, base, length); in base_name()
98 p[length + 2] = '\0'; in base_name()
103 return xstrndup (base, length); in base_name()
Dregex.c44 # define re_compile_pattern(pattern, length, bufp) \ argument
45 __re_compile_pattern (pattern, length, bufp)
Dregexec.c42 const char *string, Idx length,
53 const char *string, Idx length, Idx start,
234 Idx start, length; local
245 length = pmatch[0].rm_eo;
250 length = strlen (string);
255 err = re_search_internal (preg, string, length, start, length,
256 length, 0, NULL, eflags);
258 err = re_search_internal (preg, string, length, start, length,
259 length, nmatch, pmatch, eflags);
314 re_match (bufp, string, length, start, regs) in re_match() argument
[all …]
/ndk/sources/host-tools/sed-4.2.1/sed/
Dexecute.c90 size_t length; /* Length of text (or active, if used). */ member
217 MEMMOVE(lb->text, lb->active, lb->length);
239 str_append(to, string, length) in str_append() argument
242 size_t length;
244 size_t new_length = to->length + length;
248 MEMCPY(to->active + to->length, string, length);
249 to->length = new_length;
253 while (length)
255 size_t n = MBRLEN (string, length, &to->mbstate);
267 length -= n;
[all …]
Dfmt.c122 short length; /* length of this word */ member
323 word_limit->length = parabuf - word_limit->text - (c != EOF); in get_line()
324 in_column += word_limit->length; in get_line()
380 finish = start + (w->length - 1); in check_punctuation()
442 saved_length = word_limit->length; in fmt_paragraph()
443 word_limit->length = max_width; /* sentinel */ in fmt_paragraph()
453 len += w->length; in fmt_paragraph()
469 len += (w - 1)->space + w->length; /* w > start >= words */ in fmt_paragraph()
475 word_limit->length = saved_length; in fmt_paragraph()
500 cost += WIDOW_COST ((this - 1)->length); in base_cost()
[all …]
Dutils.c516 size_t length; member
528 b->length = 0; in init_buffer()
543 return b->length;
576 if (b->allocated - b->length < n)
577 resize_buffer(b, b->length+n);
578 result = memcpy(b->b + b->length, p, n);
579 b->length += n;
597 if (b->allocated - b->length < 1)
598 resize_buffer(b, b->length+1);
599 result = b->b + b->length++;
/ndk/sources/host-tools/make-3.81/
Dexpand.c58 variable_buffer_output (char *ptr, char *string, unsigned int length) in variable_buffer_output() argument
60 register unsigned int newlen = length + (ptr - variable_buffer); in variable_buffer_output()
73 bcopy (string, ptr, length); in variable_buffer_output()
74 return ptr + length; in variable_buffer_output()
163 reference_variable (char *o, char *name, unsigned int length) in reference_variable() argument
168 v = lookup_variable (name, length); in reference_variable()
171 warn_undefined (name, length); in reference_variable()
197 variable_expand_string (char *line, char *string, long length) in variable_expand_string() argument
211 if (length >= 0) in variable_expand_string()
213 save_char = string[length]; in variable_expand_string()
[all …]
Dvariable.c109 return_STRING_N_HASH_1 (key->name, key->length); in variable_hash_1()
116 return_STRING_N_HASH_2 (key->name, key->length); in variable_hash_2()
124 int result = x->length - y->length; in variable_hash_cmp()
127 return_STRING_N_COMPARE (x->name, y->name, x->length); in variable_hash_cmp()
162 define_variable_in_set (const char *name, unsigned int length, in define_variable_in_set() argument
175 var_key.length = length; in define_variable_in_set()
210 v->name = savestring (name, length); in define_variable_in_set()
211 v->length = length; in define_variable_in_set()
305 int l = v->length; in handle_special_var()
340 lookup_variable (const char *name, unsigned int length) in lookup_variable() argument
[all …]
Dvariable.h54 int length; /* strlen (name) */ member
112 extern char *variable_buffer_output PARAMS ((char *ptr, char *string, unsigned int length));
120 long length));
152 extern struct variable *lookup_variable PARAMS ((const char *name, unsigned int length));
154 unsigned int length,
158 PARAMS ((const char *name, unsigned int length, char *value,
Dfunction.c345 static unsigned int length; in string_glob() local
359 length = 100; in string_glob()
377 if (idx + len + 1 > length) in string_glob()
379 length += (len + 1) * 2; in string_glob()
380 result = (char *) xrealloc (result, length); in string_glob()
884 int length; member
903 int result = ((struct a_word const *) x)->length - ((struct a_word const *) y)->length; in a_word_hash_cmp()
915 int length; member
953 pat->length = len; in func_filter_filterout()
977 word->length = len; in func_filter_filterout()
[all …]
Ddir.c383 short length; member
404 int result = x->length - y->length; in dirfile_hash_cmp()
623 dirfile_key.length = strlen (filename); in dir_contents_file_exists_p()
695 dirfile_key.length = len; in dir_contents_file_exists_p()
707 df->length = len; in dir_contents_file_exists_p()
879 new->length = strlen (filename); in file_impossible()
956 dirfile_key.length = strlen (filename); in file_impossible_p()
1138 unsigned int len = df->length + 1; in read_dirstream()
Dmisc.c388 savestring (const char *str, unsigned int length) in savestring() argument
390 register char *out = (char *) xmalloc (length + 1); in savestring()
391 if (length > 0) in savestring()
392 bcopy (str, out, length); in savestring()
393 out[length] = '\0'; in savestring()
/ndk/build/awk/
Dgen-windows-host-path.awk86 cygwin[count] = substr(cygwin[nn],1,length(cygwin[nn])-1) up
95 cygwin[count] = substr(cygwin[nn],1,length(cygwin[nn])-1) lo
105 if (length(cygwin[jj]) > length(cygwin[jj+1])) {
108 if (length(cygwin[jj]) == length(cygwin[jj+1]) &&
Dgen-cygwin-deps-converter.awk108 if (length(host[jj]) > length(host[jj+1])) {
111 if (length(host[jj]) == length(host[jj+1]) &&
/ndk/sources/host-tools/sed-4.2.1/testsuite/
Duniq.inp371 && length - re->max_match_size > start_offset)
471 /* If a back reference hasn't been set, the length that is passed is greater
485 /* If the length of the reference is zero, just continue with the
486 /* If the reference is unset, set the length to be longer than the amount
615 analyzing most of the pattern. length > re->max_match_size is
982 eptr += length;
983 eptr += length;
984 eptr += length;
985 eptr += length;
988 eptr -= length;
[all …]
Duniq.good15 && length - re->max_match_size > start_offset)
83 /* If a back reference hasn't been set, the length that is passed is greater
97 /* If the length of the reference is zero, just continue with the
98 /* If the reference is unset, set the length to be longer than the amount
210 analyzing most of the pattern. length > re->max_match_size is
373 eptr += length;
376 eptr -= length;
412 if (!match_ref (offset, eptr, length, md, ims))
485 if (i >= max || !match_ref (offset, eptr, length, md, ims))
490 if (is_subject && length > md->end_subject - p)
[all …]
/ndk/tests/device/test-gnustl-full/unit/
Dcodecvt_test.cpp444 int res = cdect.length(state, from.data(), from.data() + from.size(), from.size()); in length_test()
541 …int len = cvt.length(state, cp936_str.data(), cp936_str.data() + cp936_str.size(), sizeof(wbuf) / … in special_encodings()
581 …int len = cvt.length(state, utf8_str.data(), utf8_str.data() + utf8_str.size(), sizeof(wbuf) / siz… in special_encodings()
597 size_t length = 1; in special_encodings() local
599 while (from + length <= from_end) { in special_encodings()
600 res = cvt.in(state, from, from + length, from_next, in special_encodings()
606 length = 1; in special_encodings()
613 ++length; in special_encodings()
/ndk/tests/device/test-stlport/unit/
Dcodecvt_test.cpp444 int res = cdect.length(state, from.data(), from.data() + from.size(), from.size()); in length_test()
541 …int len = cvt.length(state, cp936_str.data(), cp936_str.data() + cp936_str.size(), sizeof(wbuf) / … in special_encodings()
581 …int len = cvt.length(state, utf8_str.data(), utf8_str.data() + utf8_str.size(), sizeof(wbuf) / siz… in special_encodings()
597 size_t length = 1; in special_encodings() local
599 while (from + length <= from_end) { in special_encodings()
600 res = cvt.in(state, from, from + length, from_next, in special_encodings()
606 length = 1; in special_encodings()
613 ++length; in special_encodings()
/ndk/sources/cxx-stl/stlport/stlport/stl/
D_string_operators.h51 const size_t __n = _Traits::length(__s);
85 const size_t __n = _Traits::length(__s);
171 const size_t __n = _Traits::length(__s);
190 const size_t __n = _Traits::length(__s);
207 const size_t __n = _Traits::length(__s);
220 const size_t __n = _Traits::length(__s);
314 size_t __n = _Traits::length(__s);
323 size_t __n = _Traits::length(__s);
333 size_t __n = _Traits::length(__s);
342 size_t __n = _Traits::length(__s);
[all …]
D_string.h355 return _M_assign(__s, __s + traits_type::length(__s));
401 size_type length() const { return size(); } in length() function
530 { _STLP_FIX_LITERAL_BUG(__s) return _M_append(__s, __s + traits_type::length(__s)); } in append()
563 { _STLP_FIX_LITERAL_BUG(__s) return _M_assign(__s, __s + _Traits::length(__s)); } in assign()
642 size_type __len = _Traits::length(__s); in insert()
853 return replace(__pos, __n1, __s, _Traits::length(__s)); in replace()
883 return _M_replace(__first, __last, __s, __s + _Traits::length(__s), _M_inside(__s)); in replace()
957 { _STLP_FIX_LITERAL_BUG(__s) return find(__s, __pos, _Traits::length(__s)); }
970 { _STLP_FIX_LITERAL_BUG(__s) return rfind(__s, __pos, _Traits::length(__s)); }
980 { _STLP_FIX_LITERAL_BUG(__s) return find_first_of(__s, __pos, _Traits::length(__s)); }
[all …]
Dchar_traits.h153 static size_t _STLP_CALL length(const char_type* __s) { in length() function
228 static size_t _STLP_CALL length(const char* __s) in length() function
263 static size_t _STLP_CALL length(const wchar_t* __s) in length() function
/ndk/build/tools/toolchain-patches/build/
D0002-Options-brought-in-from-core-combo-for-IA.patch27 + -finline-limit=300 -fmessage-length=0 -fno-inline-functions-called-once \
39 + -ffunction-sections -funwind-tables -fmessage-length=0 \
/ndk/sources/host-tools/sed-4.2.1/m4/
Dmemchr.m424 # memchr should not dereference anything with length 0
26 # memchr should not dereference overestimated length after a match

12345