• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/flac-1.2.1/src/share/utf8/

Lines Matching refs:wc

82   int wc, i, k;
117 wc = *s++ & ((1 << (7 - k)) - 1);
121 wc = (wc << 6) | (*s++ & 0x3f);
123 if (wc < (1 << (5 * k - 4)))
126 *pwc = wc;
132 unsigned int wc = wc1;
136 if (wc < (1u << 7)) {
137 *s++ = wc;
140 else if (wc < (1u << 11)) {
141 *s++ = 0xc0 | (wc >> 6);
142 *s++ = 0x80 | (wc & 0x3f);
145 else if (wc < (1u << 16)) {
146 *s++ = 0xe0 | (wc >> 12);
147 *s++ = 0x80 | ((wc >> 6) & 0x3f);
148 *s++ = 0x80 | (wc & 0x3f);
151 else if (wc < (1u << 21)) {
152 *s++ = 0xf0 | (wc >> 18);
153 *s++ = 0x80 | ((wc >> 12) & 0x3f);
154 *s++ = 0x80 | ((wc >> 6) & 0x3f);
155 *s++ = 0x80 | (wc & 0x3f);
158 else if (wc < (1u << 26)) {
159 *s++ = 0xf8 | (wc >> 24);
160 *s++ = 0x80 | ((wc >> 18) & 0x3f);
161 *s++ = 0x80 | ((wc >> 12) & 0x3f);
162 *s++ = 0x80 | ((wc >> 6) & 0x3f);
163 *s++ = 0x80 | (wc & 0x3f);
166 else if (wc < (1u << 31)) {
167 *s++ = 0xfc | (wc >> 30);
168 *s++ = 0x80 | ((wc >> 24) & 0x3f);
169 *s++ = 0x80 | ((wc >> 18) & 0x3f);
170 *s++ = 0x80 | ((wc >> 12) & 0x3f);
171 *s++ = 0x80 | ((wc >> 6) & 0x3f);
172 *s++ = 0x80 | (wc & 0x3f);
186 int (*wctomb)(void *table, char *s, int wc);
195 int charset_wctomb(struct charset *charset, char *s, int wc)
197 return (*charset->wctomb)(charset->map, s, wc);
215 static int wctomb_utf8(void *map, char *s, int wc)
218 return utf8_wctomb(s, wc);
229 int wc;
234 wc = (unsigned char)*s;
235 if (wc & ~0x7f)
238 *pwc = wc;
239 return wc ? 1 : 0;
242 static int wctomb_ascii(void *map, char *s, int wc)
247 if (wc & ~0x7f)
249 *s = wc;
261 int wc;
266 wc = (unsigned char)*s;
267 if (wc & ~0xff)
270 *pwc = wc;
271 return wc ? 1 : 0;
274 static int wctomb_iso1(void *map, char *s, int wc)
279 if (wc & ~0xff)
281 *s = wc;
297 unsigned short wc;
301 wc = map->from[(unsigned char)*s];
302 if (wc == 0xffff)
305 *pwc = (int)wc;
306 return wc ? 1 : 0;
365 unsigned short wc = wc1;
380 i = map->to->first[HASH(wc)];
382 if (map->from[i] == wc) {
393 if (map->from[i] == wc) {
489 int i, j, wc;
501 i = charset_mbtowc(charset1, &wc, from, fromlen);
506 wc = '#';
509 j = charset_wctomb(charset2, p, wc);