Home
last modified time | relevance | path

Searched refs:unichar (Results 1 – 16 of 16) sorted by relevance

/toolchain/binutils/binutils-2.27/binutils/
Dwinduni.c48 static rc_uint_type wind_WideCharToMultiByte (rc_uint_type, const unichar *, char *, rc_uint_type);
49 static rc_uint_type wind_MultiByteToWideChar (rc_uint_type, const char *, unichar *, rc_uint_type);
50 static int unichar_isascii (const unichar *, rc_uint_type);
191 unicode_from_ascii (rc_uint_type *length, unichar **unicode, const char *ascii) in unicode_from_ascii()
201 unicode_from_ascii_len (rc_uint_type *length, unichar **unicode, const char *ascii, rc_uint_type a_… in unicode_from_ascii_len()
222 unichar *utmp, *up; in unicode_from_ascii_len()
231 utmp = (unichar *) res_alloc (sizeof (unichar) * (idx + 1)); in unicode_from_ascii_len()
234 memcpy (utmp, *unicode, idx * sizeof (unichar)); in unicode_from_ascii_len()
247 utmp = ((unichar *) res_alloc (elen + sizeof (unichar) * 2)); in unicode_from_ascii_len()
249 elen /= sizeof (unichar); in unicode_from_ascii_len()
[all …]
Dwinduni.h45 typedef unsigned short unichar; typedef
58 extern void unicode_from_ascii (rc_uint_type *, unichar **, const char *);
61 extern void ascii_from_unicode (rc_uint_type *, const unichar *, char **);
64 extern unichar *unichar_dup (const unichar *);
67 extern unichar *unichar_dup_uppercase (const unichar *);
70 extern rc_uint_type unichar_len (const unichar *);
73 extern void unicode_print (FILE *, const unichar *, rc_uint_type);
79 extern void unicode_print_quoted (FILE *, const unichar *, rc_uint_type);
127 extern void unicode_from_codepage (rc_uint_type *, unichar **, const char *, rc_uint_type);
128 extern void unicode_from_ascii_len (rc_uint_type *, unichar **, const char *, rc_uint_type );
[all …]
Dwindmc.h36 extern unichar *mcset_msg_id_typedef;
45 unichar *usz;
48 unichar *sval;
57 unichar *message;
63 unichar *user_text;
66 unichar *symbol;
74 void mc_add_keyword (unichar *, int, const char *, rc_uint_type, unichar *);
88 void mc_set_content (const unichar *);
Dmclex.c42 static unichar *input_stream = NULL;
43 static unichar *input_stream_pos = NULL;
48 mc_set_content (const unichar *src) in mc_set_content()
116 static unichar *
117 get_diff (unichar *end, unichar *start) in get_diff()
119 unichar *ret; in get_diff()
120 unichar save = *end; in get_diff()
129 parse_digit (unichar ch) in parse_digit()
210 unichar *usz, *usv = NULL; in mc_add_keyword_ascii()
220 mc_add_keyword (unichar *usz, int rid, const char *grp, rc_uint_type nv, unichar *sv) in mc_add_keyword()
[all …]
Dmcparse.y36 static unichar *mc_last_symbol = NULL;
46 unichar *ustr;
282 unichar *h;
286 h = (unichar *) res_alloc ((l1 + l2 + 1) * sizeof (unichar));
287 if (l1) memcpy (h, $1, l1 * sizeof (unichar));
288 if (l2) memcpy (&h[l1], $2, l2 * sizeof (unichar));
299 unichar *h;
303 h = (unichar *) res_alloc ((l1 + l2 + 1) * sizeof (unichar));
304 if (l1) memcpy (h, $1, l1 * sizeof (unichar));
305 if (l2) memcpy (&h[l1], $2, l2 * sizeof (unichar));
Dwindres.h57 extern void res_unistring_to_id (rc_res_id *, const unichar *);
98 extern rc_menuitem *define_menuitem (const unichar *, rc_uint_type, rc_uint_type,
104 extern rc_rcdata_item *define_rcdata_unistring (const unichar *, rc_uint_type);
106 extern void define_stringtable (const rc_res_res_info *, rc_uint_type, const unichar *, int);
113 extern rc_ver_info *append_ver_varfileinfo (rc_ver_info *, const unichar *, rc_ver_varinfo *);
114 extern rc_ver_stringinfo *append_verval (rc_ver_stringinfo *, const unichar *, const unichar *);
Dresres.c58 static unichar *read_unistring (windres_bfd *, rc_uint_type *, rc_uint_type, rc_uint_type *);
392 return sizeof (unichar) * (id->u.n.length + 1); in get_id_size()
394 return sizeof (unichar) * 2; in get_id_size()
472 bfd_byte *d = (bfd_byte *) xmalloc (len * sizeof (unichar)); in write_res_id()
474 windres_put_16 (wrbfd, d + (i * sizeof (unichar)), id->u.n.name[i]); in write_res_id()
475 windres_put_16 (wrbfd, d + (i * sizeof (unichar)), 0); in write_res_id()
476 set_windres_bfd_content (wrbfd, d, off, (len * sizeof (unichar))); in write_res_id()
478 off += (len * sizeof (unichar)); in write_res_id()
518 unichar *id_s = NULL; in read_res_id()
541 static unichar *
[all …]
Drclex.c417 static unichar *
420 return (unichar *) get_string (len * sizeof (unichar)); in get_unistring()
427 static unichar *
431 unichar *ret, *s; in handle_uniquotes()
495 *s++ = (unichar) *t++; in handle_uniquotes()
512 *s++ = (unichar) ch; in handle_uniquotes()
534 *s++ = (unichar) ch; in handle_uniquotes()
540 *s++ = (unichar) *t++; in handle_uniquotes()
545 *s++ = (unichar) *t++; in handle_uniquotes()
769 unichar *us; in yylex()
Drcparse.y59 static unichar null_unichar;
106 unichar *uni;
110 const unichar *s;
1543 unichar *h = NULL;
1699 unichar *h = (unichar *) res_alloc ((l1 + l2 + 1) * sizeof (unichar));
1701 memcpy (h, $1, l1 * sizeof (unichar));
1703 memcpy (h + l1, $2, l2 * sizeof (unichar));
1716 unichar *h = NULL;
1729 unichar *h = NULL;
1748 unichar *h = (unichar *) res_alloc ((l1 + l2 + 1) * sizeof (unichar));
[all …]
Dwindint.h113 unichar *name;
409 unichar *caption;
413 unichar *font;
795 unichar *text;
861 const unichar *w;
881 unichar *string;
953 unichar *language;
978 unichar *key;
1000 unichar *key;
1002 unichar *value;
Dresbin.c38 static unichar *get_unicode (windres_bfd *, const bfd_byte *, rc_uint_type, rc_uint_type *);
59 unichar **, rc_uint_type *, rc_uint_type *, rc_uint_type *,
124 static unichar *
129 unichar *ret; in get_unicode()
141 ret = (unichar *) res_alloc ((c + 1) * sizeof (unichar)); in get_unicode()
626 unichar *s; in bin_to_res_string()
632 s = (unichar *) res_alloc (slen * sizeof (unichar)); in bin_to_res_string()
904 const char *key, unichar **pkey, in get_version_header()
925 *off += (sublen + 1) * sizeof (unichar); in get_version_header()
962 (unichar **) NULL, &verlen, &vallen, &type, &off); in bin_to_res_version()
[all …]
Dwindmc.c129 unichar *mcset_msg_id_typedef = NULL;
339 convert_unicode_to_ACP (const unichar *usz) in convert_unicode_to_ACP()
354 write_dbg_define (FILE *fp, const unichar *sym_name, const unichar *typecast) in write_dbg_define()
370 write_header_define (FILE *fp, const unichar *sym_name, rc_uint_type vid, const unichar *typecast, … in write_header_define()
440 e = memcmp (l1->usz, r1->usz, sizeof (unichar) * len1); in sort_keyword_by_nval()
442 e = memcmp (l1->usz, r1->usz, sizeof (unichar) * len2); in sort_keyword_by_nval()
585 unichar *ht = n->message; in mc_generate_bin_item()
594 txt_len *= sizeof (unichar); in mc_generate_bin_item()
595 len = BIN_MESSAGETABLE_ITEM_SIZE + txt_len + sizeof (unichar); in mc_generate_bin_item()
1109 unichar *u; in main()
[all …]
Dresrc.c1464 define_menuitem (const unichar *text, rc_uint_type menuid, rc_uint_type type, in define_menuitem()
1553 define_rcdata_unistring (const unichar *string, rc_uint_type len) in define_rcdata_unistring()
1556 unichar *s; in define_rcdata_unistring()
1562 s = (unichar *) res_alloc (len * sizeof (unichar)); in define_rcdata_unistring()
1563 memcpy (s, string, len * sizeof (unichar)); in define_rcdata_unistring()
1589 rc_uint_type stringid, const unichar *string, int len) in define_stringtable()
1591 unichar *h; in define_stringtable()
1615 h = (unichar *) res_alloc ((len + 1) * sizeof (unichar)); in define_stringtable()
1617 memcpy (h, string, len * sizeof (unichar)); in define_stringtable()
1844 append_ver_varfileinfo (rc_ver_info *verinfo, const unichar *key, in append_ver_varfileinfo()
[all …]
Drescoff.c248 re->id.u.n.name = (unichar *) res_alloc (length * sizeof (unichar)); in read_coff_res_dir()
692 windres_put_16 (cwi->wrbfd, str + (i + 1) * sizeof (unichar), e->id.u.n.name[i]); in coff_to_bin()
Dwindres.c240 unichar *as, *ase, *bs, *bse; in res_id_cmp()
312 res_unistring_to_id (rc_res_id *res_id, const unichar *u) in res_unistring_to_id()
DChangeLog-2007693 * winduni.c: New printing and unichar support routines.
694 * winduni.h: Prototypes for new unichar helpers.