| /locale/programs/ |
| A D | charmap-kw.h | 71 hash (register const char *str, register size_t len) in hash() argument 102 register unsigned int hval = len; in hash() 124 return hval + asso_values[(unsigned char)str[len - 1]]; in hash() 128 charmap_hash (register const char *str, register size_t len) in charmap_hash() argument 175 if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) in charmap_hash() 177 register unsigned int key = hash (str, len); in charmap_hash() 183 if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0') in charmap_hash()
|
| A D | charmap-dir.c | 50 size_t len; in charmap_opendir() local 65 len = strlen (directory); in charmap_opendir() 66 add_slash = (len == 0 || directory[len - 1] != '/'); in charmap_opendir() 70 cdir->directory[len] = '/'; in charmap_opendir() 72 cdir->directory_len = len + add_slash; in charmap_opendir() 90 size_t len; in charmap_readdir() local 103 len = strlen (dirent->d_name); in charmap_readdir() 135 if (len > 3 && memcmp (&filename[len - 3], ".gz", 3) == 0) in charmap_readdir() 136 filename[len - 3] = '\0'; in charmap_readdir() 137 else if (len > 4 && memcmp (&filename[len - 4], ".bz2", 4) == 0) in charmap_readdir() [all …]
|
| A D | locfile-kw.h | 71 hash (register const char *str, register size_t len) in hash() argument 102 register unsigned int hval = len; in hash() 124 return hval + asso_values[(unsigned char)str[len - 1]]; in hash() 128 locfile_hash (register const char *str, register size_t len) in locfile_hash() argument 606 if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) in locfile_hash() 608 register unsigned int key = hash (str, len); in locfile_hash() 614 if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0') in locfile_hash()
|
| A D | repertoire.c | 39 size_t len); 360 repertoiremap_hash (const char *str, size_t len) in repertoiremap_hash() argument 370 if (len == 11 && memcmp (wordlist[0].name, str, 11) == 0) in repertoiremap_hash() 372 if (len == 12 && memcmp (wordlist[1].name, str, 12) == 0) in repertoiremap_hash() 374 if (len == 7 && memcmp (wordlist[2].name, str, 7) == 0) in repertoiremap_hash() 376 if (len == 3 && memcmp (wordlist[3].name, str, 3) == 0) in repertoiremap_hash() 479 size_t len) in repertoire_find_value() argument 486 if (find_entry ((hash_table *) &rep->char_table, name, len, &result) < 0) in repertoire_find_value()
|
| A D | charmap.h | 77 const char *name, size_t len); 81 const char *name, size_t len);
|
| A D | locfile.c | 362 size_t len; in siblings_uncached() local 370 len = strlen (output_path); in siblings_uncached() 371 base = (char *) alloca (len); in siblings_uncached() 372 memcpy (base, output_path, len); in siblings_uncached() 373 p = base + len; in siblings_uncached() 384 len = p - base; in siblings_uncached() 411 other_path = (char *) xmalloc (len + 1 + strlen (other_name) + 2); in siblings_uncached() 412 memcpy (other_path, base, len); in siblings_uncached() 413 other_path[len] = '/'; in siblings_uncached() 414 strcpy (other_path + len + 1, other_name); in siblings_uncached() [all …]
|
| A D | locale.c | 640 size_t len = 0; in write_archive_locales() local 654 len = st.st_size; in write_archive_locales() 655 addr = mmap64 (NULL, len, PROT_READ, MAP_SHARED, fd, 0); in write_archive_locales() 660 if (head->namehash_offset + head->namehash_size > len in write_archive_locales() 661 || head->string_offset + head->string_size > len in write_archive_locales() 662 || head->locrectab_offset + head->locrectab_size > len in write_archive_locales() 663 || head->sumhash_offset + head->sumhash_size > len) in write_archive_locales() 709 locrec->record[LC_IDENTIFICATION].len); in write_archive_locales() 712 locrec->record[LC_CTYPE].len); in write_archive_locales() 722 munmap (addr, len); in write_archive_locales()
|
| A D | ld-collate.c | 804 size_t len; in insert_weights() local 828 len = 9; in insert_weights() 831 len = cp - startp; in insert_weights() 1127 char mbcnt[len + 1]; in handle_ellipsis() 1128 char mbend[len + 1]; in handle_ellipsis() 1156 memset (mbcnt, '\0', len); in handle_ellipsis() 1167 mbcnt[len] = '\0'; in handle_ellipsis() 1171 memset (mbend, '\0', len); in handle_ellipsis() 1174 mbend[len] = '\0'; in handle_ellipsis() 1917 int len = 0; in output_weight() local [all …]
|
| A D | repertoire.h | 53 const char *name, size_t len);
|
| A D | locarchive.c | 257 if (GET (la->record[cnt].offset) + GET (la->record[cnt].len) > end_a) in oldlocrecentcmp() 258 end_a = GET (la->record[cnt].offset) + GET (la->record[cnt].len); in oldlocrecentcmp() 269 end_b = GET (lb->record[cnt].offset) + GET (lb->record[cnt].len); in oldlocrecentcmp() 498 old_data[idx].size = GET (oldlocrec->record[idx].len); in enlarge_archive() 949 && data[cnt].size == GET (locrecent[iloc].record[cnt].len) in add_locale() 1125 SET (locrecent->record[cnt].len, data[cnt].size); in add_locale() 1694 + GET (locrec->record[idx].len)) in show_archive_content() 1696 + GET (locrec->record[LC_ALL].len)))) in show_archive_content() 1727 && (dataent.file_offset + GET (locrec->record[idx].len) in show_archive_content() 1729 + GET (locrec->record[LC_ALL].len)))) in show_archive_content() [all …]
|
| A D | localedef.c | 574 int len = 0; in normalize_codeset() local 584 ++len; in normalize_codeset() 593 wp = retval = xasprintf ("%s%.*s", only_digit ? "iso" : "", len, codeset); in normalize_codeset()
|
| A D | localedef.h | 107 size_t len[__LC_LAST]; member
|
| A D | ld-ctype.c | 398 size_t len; in ctype_finish() local 722 data->name, len); in ctype_finish() 3614 size_t len; in allocate_arrays() local 3774 data->name, len); in allocate_arrays() 3966 size_t len; in allocate_arrays() local 3972 len = wcslen ((const wchar_t *) sorted[cnt]->from) + 1; in allocate_arrays() 3974 (const wchar_t *) sorted[cnt]->from, len); in allocate_arrays() 3975 from_len += len; in allocate_arrays() 3981 len = wcslen ((const wchar_t *) srunp->str) + 1; in allocate_arrays() 3983 (const wchar_t *) srunp->str, len); in allocate_arrays() [all …]
|
| A D | charmap.c | 923 charmap_find_value (const struct charmap_t *cm, const char *name, size_t len) in charmap_find_value() argument 927 return (find_entry ((hash_table *) &cm->char_table, name, len, &result) in charmap_find_value()
|
| /locale/ |
| A D | loadarchive.c | 70 uint32_t len; member 97 uint32_t len; member 139 size_t len; in _nl_load_locale_from_archive() member 261 headmap.len = mapsize; in _nl_load_locale_from_archive() 315 > headmap.len) in _nl_load_locale_from_archive() 319 results[cnt].len = locrec->record[cnt].len; in _nl_load_locale_from_archive() 329 ranges[nranges].len = locrec->record[cnt].len; in _nl_load_locale_from_archive() 368 results[ranges[cnt].category].len = ranges[cnt].len; in _nl_load_locale_from_archive() 433 newp->len = to - from; in _nl_load_locale_from_archive() 445 results[ranges[cnt].category].len = ranges[cnt].len; in _nl_load_locale_from_archive() [all …]
|
| A D | indigits.h | 28 indigit_value (const char **s, size_t *len, int *decided) in indigit_value() argument 55 if (from_level == 0 && dlen <= *len in indigit_value() 60 *len -= dlen; in indigit_value() 78 if (i >= from_level && dlen <= *len in indigit_value() 83 *len -= dlen; in indigit_value()
|
| A D | weightwc.h | 28 const wint_t **cpp, size_t len) in findidx() argument 48 --len; in findidx() 78 for (cnt = 0; cnt < nhere && cnt < len; ++cnt) in findidx() 106 for (cnt = 0; cnt < nhere - 1 && cnt < len; ++cnt) in findidx() 111 if (cnt < nhere - 1 || cnt == len) in findidx()
|
| A D | gen-translit.py | 101 write("#define NTRANSLIT {}\n".format(len(translits))) 115 total += len(translit.codepoints.decoded) + 1 131 if col > 2 and col + len(translit.codepoints.source) + 4 >= 79: 138 col += len(translit.codepoints.source) + 3 153 total += len(translit.replacement.decoded) + 2 169 if col > 2 and col + len(translit.replacement.source) + 6 >= 79: 176 col += len(translit.replacement.source) + 5
|
| A D | weight.h | 28 const unsigned char **cpp, size_t len) in findidx() argument 42 --len; in findidx() 72 for (cnt = 0; cnt < nhere && cnt < len; ++cnt) in findidx() 96 for (cnt = 0; cnt < nhere && cnt < len; ++cnt) in findidx() 102 if (cnt == len || cp[cnt] > usrc[cnt]) in findidx()
|
| A D | strlen-hash.h | 31 hash_string (const char *str_param, size_t len) in hash_string() argument 34 const char *end_str = str_param + len; in hash_string() 37 hval = len; in hash_string()
|
| A D | locarchive.h | 76 uint32_t len; member
|
| A D | categories.def | 84 DEFINE_ELEMENT (_NL_CTYPE_INDIGITS_MB_LEN, "ctype-indigits_mb-len", std, word) 95 DEFINE_ELEMENT (_NL_CTYPE_INDIGITS_WC_LEN, "ctype-indigits_wc-len", std, word) 131 …DEFINE_ELEMENT (_NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN, "ctype-translit-default-missing-len", std,… 133 DEFINE_ELEMENT (_NL_CTYPE_TRANSLIT_IGNORE_LEN, "ctype-translit-ignore-len", std, word)
|