| /src/external/gpl2/gettext/dist/gettext-tools/misc/ |
| po-compat.el | 33 ;; according to the Charset= header in the PO file. For more support 73 (defconst po-content-type-charset-alist 151 "How to convert a GNU libc/libiconv canonical charset name as seen in 154 (defun po-find-charset (filename) 155 "Return PO file charset value." 157 (let ((charset-regexp 158 "^\"Content-Type: text/plain;[ \t]*charset=\\(.*\\)\\\\n\"") 160 ;; Try the first 4096 bytes. In case we cannot find the charset value 171 (cond ((re-search-forward charset-regexp nil t) (match-string 1)) 174 ;; value was loaded. Load the next 1024 bytes; if charset stil [all...] |
| /src/external/gpl2/gettext/dist/gettext-tools/src/ |
| msgl-charset.c | 1 /* Message list charset and locale charset handling. 26 #include "msgl-charset.h" 31 #include "po-charset.h" 71 const char *charsetstr = c_strstr (header, "charset="); 76 char *charset; local 79 charsetstr += strlen ("charset="); 81 charset = (char *) xallocsa (len + 1); 82 memcpy (charset, charsetstr, len); 83 charset[len] = '\0' [all...] |
| x-po.c | 46 /* The charset found in the header entry. */ 69 away, we have constructed a new one. Only remember its charset. 71 because the old header may contain a charset= directive. */ 74 const char *charsetstr = strstr (msgstr, "charset="); 79 char *charset; local 81 charsetstr += strlen ("charset="); 83 charset = (char *) xmalloc (len + 1); 84 memcpy (charset, charsetstr, len); 85 charset[len] = '\0'; 89 header_charset = charset; [all...] |
| msgl-cat.c | 37 #include "po-charset.h" 149 const char *charsetstr = c_strstr (header, "charset="); 154 char *charset; local 157 charsetstr += strlen ("charset="); 159 charset = (char *) xallocsa (len + 1); 160 memcpy (charset, charsetstr, len); 161 charset[len] = '\0'; 163 canon_charset = po_charset_canonicalize (charset); 175 && strcmp (charset, "CHARSET") == 0 [all...] |
| msgl-iconv.c | 1 /* Message list charset and locale charset handling. 39 #include "po-charset.h" 184 /* Search the header entry, and extract and replace the charset name. */ 192 const char *charsetstr = c_strstr (header, "charset="); 197 char *charset; local 202 charsetstr += strlen ("charset="); 204 charset = (char *) xallocsa (len + 1); 205 memcpy (charset, charsetstr, len); 206 charset[len] = '\0' 482 char *charset; local [all...] |
| po-charset.c | 0 /* Charset handling while reading PO files. 26 #include "po-charset.h" 56 po_charset_canonicalize (const char *charset) 59 iconv() across platforms. Taken from intl/config.charset. */ 110 if (c_strcasecmp (charset, standard_charsets[i]) == 0) 459 /* Verify the validity of CHARSET. It is necessary 464 const char *charsetstr = c_strstr (header_entry, "charset="); 469 char *charset; local 472 charsetstr += strlen ("charset="); 474 charset = (char *) xallocsa (len + 1) [all...] |
| write-po.c | 39 #include "po-charset.h" 381 const char *charset) 392 canon_charset = po_charset_canonicalize (charset); 798 message_print (const message_ty *mp, FILE *fp, const char *charset, 829 page_width, charset); 832 charset); 835 page_width, charset); 845 && po_charset_canonicalize (charset) != po_charset_utf8) 857 && po_charset_canonicalize (charset) != po_charset_utf8) 870 page_width, charset); 1024 const char *charset; local [all...] |
| /src/common/lib/libc/string/ |
| strspn.c | 43 strspn(const char *s, const char *charset) 50 if (charset[0] == '\0') 52 if (charset[1] == '\0') { 54 if (*t != *charset) 62 for (; *charset != '\0'; ++charset) 63 set[UC(*charset) >> 3] |= idx[UC(*charset) & 7]; 79 const unsigned char *charset = (const unsigned char *)charset_s; local 92 for (ch = *charset; ch != 0; ch = next_ch) [all...] |
| /src/usr.bin/pathchk/ |
| pathchk.c | 177 static const char charset[] = local 186 s = strspn(path, charset);
|
| /src/external/gpl2/lvm2/dist/libdm/regex/ |
| parse_rx.h | 27 CHARSET 40 dm_bitset_t charset; member in struct:rx_node
|
| parse_rx.c | 23 int type; /* token type, 0 indicates a charset */ 24 dm_bitset_t charset; /* The current charset */ member in struct:parse_sp 35 dm_bit_clear_all(ps->charset); 36 dm_bit_set(ps->charset, c); 58 dm_bit_set_all(ps->charset); 61 dm_bit_clear(ps->charset, 0); 66 dm_bit_clear_all(ps->charset); 108 dm_bit_clear(ps->charset, lc); 110 dm_bit_set(ps->charset, lc) [all...] |
| /src/external/gpl3/gdb/dist/gdb/guile/ |
| scm-string.c | 1 /* GDB/Scheme charset interface. 23 #include "charset.h" 82 const char *charset; member in struct:scm_to_stringn_data 95 data->result = scm_to_stringn (data->string, data->lenp, data->charset, 100 /* Convert an SCM string to a string in charset CHARSET. 117 const char *charset, int strict, SCM *except_scmp) 124 data.charset = charset; 149 const char *charset; member in struct:scm_from_stringn_data [all...] |
| /src/external/gpl3/gdb.old/dist/gdb/guile/ |
| scm-string.c | 1 /* GDB/Scheme charset interface. 23 #include "charset.h" 82 const char *charset; member in struct:scm_to_stringn_data 95 data->result = scm_to_stringn (data->string, data->lenp, data->charset, 100 /* Convert an SCM string to a string in charset CHARSET. 117 const char *charset, int strict, SCM *except_scmp) 124 data.charset = charset; 149 const char *charset; member in struct:scm_from_stringn_data [all...] |
| /src/external/gpl2/grep/dist/intl/ |
| loadmsgcat.c | 140 entry does not exist or if this does not contain the `charset=' 141 information, we will assume the charset matches the one the 166 charsetstr = strstr (nullentry, "charset="); 170 char *charset; local 173 charsetstr += strlen ("charset="); 176 charset = (char *) alloca (len + 1); 178 *((char *) mempcpy (charset, charsetstr, len)) = '\0'; 180 memcpy (charset, charsetstr, len); 181 charset[len] = '\0'; 184 /* The output charset should normally be determined by th [all...] |
| /src/external/gpl2/gettext/lib/libnlspr/ |
| Makefile | 39 msgl-charset.c \ 49 po-charset.c \ 90 COPTS.msgl-charset.c = -Wno-stack-protector 94 COPTS.po-charset.c = -Wno-stack-protector
|
| /src/lib/libc/citrus/modules/ |
| citrus_zw.c | 68 _ZWCharset charset; member in struct:__anon309 97 #define _STATE_NEEDS_EXPLICIT_INIT(_ps_) ((_ps_)->charset != NONE) 108 psenc->charset = NONE; 172 switch (psenc->charset) { 179 psenc->charset = NONE; 200 psenc->charset = ASCII; 205 psenc->charset = AMBIGIOUS; 213 psenc->charset = ASCII; 217 psenc->charset = GB2312; 226 psenc->charset = NONE [all...] |
| citrus_hz.c | 86 charset_t charset; member in struct:__anon264 304 range = &ranges[(size_t)graphic->charset]; 310 if (graphic->charset > GB2312) 367 range = &ranges[(size_t)graphic->charset]; 374 range = &ranges[(size_t)graphic->charset]; 389 range = &ranges[(size_t)graphic->charset]; 618 graphic->charset = ASCII; 625 graphic->charset = GB2312; 630 graphic->charset = CS94; 632 graphic->charset = CS96 [all...] |
| /src/usr.bin/mail/ |
| mime_header.c | 74 * =?charset?X?encoding?= 77 * 'charset' is the original character set of the unencoded string. 83 * Both 'charset' and 'X' are case independent and 'encoding' cannot 232 const char *charset; local 234 charset = value(ENAME_MIME_CHARSET); 244 decode_word((p1 = p, &p1), (q1 = q, &q1), qend, charset) == 0 && 271 decode_comment(char **obuf, char *oend, const char **ibuf, const char *iend, const char *charset) 288 decode_word((p1 = p, &p1), (q1 = q, &q1), qend, charset) == 0 && 313 if (decode_comment(&q, qend, &p, pend, charset) == -1) 439 const char *charset; local [all...] |
| mime_decode.c | 82 (void)fprintf(fp, "** charset: %s\n", XX(mip->mi_charset)); 249 mip->mi_charset = cparam("charset", mime_type_field, 1); 786 run_mime_ficonv(struct mime_info *mip, const char *charset) 793 if (charset == NULL || 795 strcasecmp(mip->mi_charset, charset) == 0 || 799 cd = iconv_open(charset, mip->mi_charset); 810 mip->mi_charset, charset); 823 char *charset; local 825 charset = value(ENAME_MIME_CHARSET); 826 if (charset && mip->mi_type && strcasecmp(mip->mi_type, "text") == 0 [all...] |
| /src/crypto/external/bsd/openssh/dist/ |
| ldapauth.c | 93 const char * charset = " \t"; local 97 num = strspn(ptr, charset); 100 while ((num = strcspn(ptr, charset))) { 201 const char * charset = " \t"; local 206 num = strspn(ptr, charset); 209 while ((num = strcspn(ptr, charset))) {
|
| /src/external/bsd/less/dist/ |
| charset.c | 1 /* $NetBSD: charset.c,v 1.5 2023/10/06 05:49:49 simonb Exp $ */ 25 #include "charset.h" 41 struct charset { struct 233 * Define a charset, given a description string. 235 * one for each character in the charset. 300 * Define a charset, given a charset name. 301 * The valid charset names are listed in the "charsets" array. 305 struct charset *p; 339 error("invalid charset name", NULL_PARG) [all...] |
| /src/external/bsd/zstd/dist/tests/fuzz/ |
| sequence_compression_api.c | 64 const char charset[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJK1234567890!@#$^&*()_"; local 68 int key = FUZZ_RDG_rand(&seed) % (int) (sizeof charset - 1); 69 str[n] = charset[key];
|
| /src/external/ibm-public/postfix/dist/src/global/ |
| rfc2047_code.c | 14 /* const char *charset, 48 /* .IP charset 50 /* rfc2047_encode() logs a warning and returns null if a charset 101 * The general form of an encoded-word is =?charset?encoding?encoded-text?= 102 * where charset and encoding are case insensitive, and encoding is B or Q. 106 * What ASCII characters are allowed in the 'charset' or 'encoding' tokens 117 #define ENC_WORD_MAX_LEN 75 /* =?charset?encoding?encoded?= */ 118 #define ENC_WORD_PROLOG_FMT "=?%s?%c?" /* =?charset?encoding? */ 167 const char *charset, 184 vstring_sprintf_append(result, ENC_WORD_PROLOG_FMT, charset, 388 const char *charset; member in struct:TEST_CASE 468 VSTRING *charset; local [all...] |
| dict_mysql.c | 165 char *charset; member in struct:__anon23076 646 if (mysql_set_character_set(host->db, dict_mysql->charset) != 0) { 648 dict_mysql->charset, mysql_error(host->db)); 696 dict_mysql->charset = cfg_get_str(p, "charset", "utf8mb4", 1, 0); 880 myfree(dict_mysql->charset);
|
| /src/libexec/identd/ |
| identd.c | 99 char *address, *charset, *fmt, *p; local 116 address = charset = fmt = NULL; 142 charset = optarg; 302 (void)idhandle(fd, charset, 314 (void)idhandle(STDIN_FILENO, charset, fmt, osname, user, 325 idhandle(int fd, const char *charset, const char *fmt, const char *osname, 412 idparse(fd, lport, fport, charset, osname, idbuf); 453 idparse(fd, lport, fport, charset, osname, idbuf); 496 idparse(fd, lport, fport, charset, osname, idbuf); 512 idparse(fd, lport, fport, charset, osname, idbuf) [all...] |