Searched defs:maxlen (Results 1 - 25 of 116) sorted by relevance

12345

/external/bison/lib/
H A Dstrnlen.c26 strnlen (const char *string, size_t maxlen) argument
28 const char *end = memchr (string, '\0', maxlen);
29 return end ? (size_t) (end - string) : maxlen;
H A Dstrnlen1.c26 /* This is the same as strnlen (string, maxlen - 1) + 1. */
28 strnlen1 (const char *string, size_t maxlen) argument
30 const char *end = (const char *) memchr (string, '\0', maxlen);
34 return maxlen;
/external/openssh/openbsd-compat/
H A Dstrnlen.c28 strnlen(const char *str, size_t maxlen) argument
32 for (cp = str; maxlen != 0 && *cp != '\0'; cp++, maxlen--)
/external/regex-re2/re2/testing/
H A Dstring_generator.cc6 // maxlen letters using the set of letters in alpha.
16 StringGenerator::StringGenerator(int maxlen, const vector<string>& alphabet) argument
17 : maxlen_(maxlen), alphabet_(alphabet),
H A Dpossible_match_test.cc25 int maxlen; member in struct:re2::PrefixTest
114 CHECK(prog->PossibleMatchRange(&min, &max, t.maxlen))
119 CHECK(RE2(t.regexp).PossibleMatchRange(&min, &max, t.maxlen));
/external/toybox/toys/pending/
H A Dfold.c34 int bufsz, len = 0, maxlen; local
36 if (toys.optflags & FLAG_w) maxlen = TT.width;
37 else if (toys.optflags & FLAG_u) maxlen = 0;
38 else maxlen = 80;
79 if (maxlen > 0 && len >= maxlen && buf[pos+1] != '\n' && buf[pos+1] != '\b') {
/external/fio/lib/
H A Dnum2str.c13 * @maxlen: max number of digits in the output string (not counting prefix and units, but counting .)
19 char *num2str(uint64_t num, int maxlen, int base, int pow2, int units) argument
66 * Divide by K/Ki until string length of num <= maxlen.
71 if (strlen(tmp) <= maxlen)
97 if ((int)(maxlen - strlen(tmp)) <= 1) {
106 assert(maxlen - strlen(tmp) - 1 > 0);
108 sprintf(fmt, "%%.%df", (int)(maxlen - strlen(tmp) - 1));
/external/libexif/libexif/fuji/
H A Dmnote-fuji-entry.c31 #define CF(format,target,v,maxlen) \
34 snprintf (v, maxlen, \
43 #define CC(number,target,v,maxlen) \
46 snprintf (v, maxlen, \
191 char *val, unsigned int maxlen)
202 memset (val, 0, maxlen);
203 maxlen--;
207 CF (entry->format, EXIF_FORMAT_UNDEFINED, val, maxlen);
208 CC (entry->components, 4, val, maxlen);
209 memcpy (val, entry->data, MIN(maxlen, entr
190 mnote_fuji_entry_get_value(MnoteFujiEntry *entry, char *val, unsigned int maxlen) argument
[all...]
H A Dexif-mnote-data-fuji.c64 exif_mnote_data_fuji_get_value (ExifMnoteData *d, unsigned int i, char *val, unsigned int maxlen) argument
75 return mnote_fuji_entry_get_value (&n->entries[i], val, maxlen);
/external/skia/bin/
H A Dcompare57 maxlen = max(map(len, common)) variable
65 print '%*s\t%6s(%6s) -> %6s(%6s)\t%s' % (maxlen, key, humanize(am), humanize(asem),
68 print '%*s\t%6s -> %6s\t%s' % (maxlen, key, humanize(am), humanize(bm), str_ratio)
/external/clang/test/Sema/
H A Denable_if.c24 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}}
29 inline size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}} argument
34 return __strnlen_chk(s, maxlen, __builtin_object_size(s, 0));
37 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate disabled: chosen when 'maxlen' is known to be less than or equal to the buffer size}}
41 __attribute__((enable_if(maxlen <= __builtin_object_size(s, 0),
42 "chosen when 'maxlen' is known to be less than or equal to the buffer size")))
45 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function has been explicitly made unavailable}}
49 __attribute__((enable_if(maxlen > __builtin_object_size(s, 0),
50 "chosen when 'maxlen' i
[all...]
/external/icu/icu4c/source/samples/legacy/
H A Dnewcol.cpp74 extern "C" void test_current(UChar data[][5], uint32_t size, uint32_t maxlen, uint8_t keys[][32]) { argument
90 qsort(data, size, maxlen*sizeof(UChar), compare_current);
H A Doldcol.cpp90 extern "C" void test_legacy(UChar data[][5], uint32_t size, uint32_t maxlen, uint8_t keys[4][32]) { argument
107 qsort(data, size, maxlen*sizeof(UChar), compare_legacy);
/external/libexif/libexif/
H A Dexif-mnote-data.c145 exif_mnote_data_get_value (ExifMnoteData *d, unsigned int n, char *val, unsigned int maxlen) argument
148 return d->methods.get_value (d, n, val, maxlen);
H A Dexif-utils.c220 exif_convert_utf16_to_utf8 (char *out, const unsigned short *in, int maxlen) argument
222 if (maxlen <= 0) {
227 if (maxlen > 1) {
229 maxlen--;
234 if (maxlen > 2) {
237 maxlen -= 2;
242 if (maxlen > 3) {
246 maxlen -= 3;
/external/libexif/libexif/pentax/
H A Dmnote-pentax-entry.c35 #define CF(format,target,v,maxlen) \
38 snprintf (v, maxlen, \
47 #define CC(number,target,v,maxlen) \
50 snprintf (v, maxlen, \
57 #define CC2(number,t1,t2,v,maxlen) \
60 snprintf (v, maxlen, \
309 char *val, unsigned int maxlen)
317 memset (val, 0, maxlen);
318 maxlen--;
341 CF (entry->format, EXIF_FORMAT_SHORT, val, maxlen);
308 mnote_pentax_entry_get_value(MnotePentaxEntry *entry, char *val, unsigned int maxlen) argument
[all...]
H A Dexif-mnote-data-pentax.c60 exif_mnote_data_pentax_get_value (ExifMnoteData *d, unsigned int i, char *val, unsigned int maxlen) argument
66 return mnote_pentax_entry_get_value (&n->entries[i], val, maxlen);
/external/liblzf/
H A Dlzf_c.c164 unsigned int maxlen = in_end - ip - len; local
165 maxlen = maxlen > MAX_REF ? MAX_REF : maxlen;
176 if (expect_true (maxlen > 16))
201 while (len < maxlen && ref[len] == ip[len]);
/external/brotli/enc/
H A Dstatic_dict.c40 size_t maxlen) {
43 BROTLI_MIN(size_t, len, maxlen));
100 size_t maxlen; local
120 maxlen = BROTLI_MIN(size_t, matchlen, l - 2);
121 for (len = minlen; len <= maxlen; ++len) {
36 DictMatchLength(const BrotliDictionary* dictionary, const uint8_t* data, size_t id, size_t len, size_t maxlen) argument
/external/eigen/Eigen/src/SparseLU/
H A DSparseLU_Memory.h201 * \param[in,out] maxlen On input, previous size of vec (Number of elements to copy ). on output, new size
209 Index SparseLUImpl<Scalar,StorageIndex>::memXpand(VectorType& vec, Index& maxlen, Index nbElts, MemType memtype, Index& num_expansions) argument
213 failed_size = this->expand<VectorType>(vec, maxlen, nbElts, 1, num_expansions);
215 failed_size = this->expand<VectorType>(vec, maxlen, nbElts, 0, num_expansions);
/external/libexif/libexif/canon/
H A Dmnote-canon-entry.c36 #define CF(format,target,v,maxlen) \
39 snprintf (v, maxlen, \
48 #define CC(number,target,v,maxlen) \
51 snprintf (v, maxlen, \
57 #define CC2(number,t1,t2,v,maxlen) \
60 snprintf (v, maxlen, \
443 unsigned int t, ExifShort vs, char *val, unsigned int maxlen)
456 strncpy (val, _(table[j].name), maxlen);
459 snprintf (val, maxlen, "0x%04x", vs);
465 unsigned int t, ExifShort vs, char *val, unsigned int maxlen)
442 canon_search_table_value(const struct canon_entry_table_t table[], unsigned int t, ExifShort vs, char *val, unsigned int maxlen) argument
464 canon_search_table_bitfield(const struct canon_entry_table_t table[], unsigned int t, ExifShort vs, char *val, unsigned int maxlen) argument
551 mnote_canon_entry_get_value(const MnoteCanonEntry *entry, unsigned int t, char *val, unsigned int maxlen) argument
[all...]
/external/libexif/libexif/olympus/
H A Dmnote-olympus-entry.c33 #define CF(format,target,v,maxlen) \
36 snprintf (v, maxlen, \
45 #define CF2(format,target1,target2,v,maxlen) \
48 snprintf (v, maxlen, \
58 #define CC(number,target,v,maxlen) \
61 snprintf (v, maxlen, \
68 #define CC2(number,t1,t2,v,maxlen) \
71 snprintf (v, maxlen, \
273 mnote_olympus_entry_get_value (MnoteOlympusEntry *entry, char *v, unsigned int maxlen) argument
287 memset (v, 0, maxlen);
[all...]
/external/libnl/include/netlink/
H A Dattr.h68 uint16_t maxlen; member in struct:nla_policy
/external/syslinux/com32/modules/
H A Ddir.c77 int maxlen = 0; local
107 maxlen = max(maxlen, de->d_reclen);
114 maxlen -= offsetof(struct dirent, d_name) + 1;
115 ncols = (cols + 2)/(maxlen + 8);
H A Dls.c77 int maxlen = 0; local
107 maxlen = max(maxlen, de->d_reclen);
114 maxlen -= offsetof(struct dirent, d_name) + 1;
115 ncols = (cols + 2)/(maxlen + 8);

Completed in 494 milliseconds

12345