Lines Matching refs:ctx

13 #define LXB_ENCODING_ENCODE_APPEND(ctx, cp)                                    \  argument
15 if ((ctx)->buffer_used == (ctx)->buffer_length) { \
19 (ctx)->buffer_out[(ctx)->buffer_used++] = (lxb_char_t) cp; \
23 #define LXB_ENCODING_ENCODE_APPEND_P(ctx, cp) \ argument
25 if ((ctx)->buffer_used == (ctx)->buffer_length) { \
30 (ctx)->buffer_out[(ctx)->buffer_used++] = (lxb_char_t) cp; \
34 #define LXB_ENCODING_ENCODE_ERROR(ctx) \ argument
36 if (ctx->replace_to == NULL) { \
40 if ((ctx->buffer_used + ctx->replace_len) > ctx->buffer_length) { \
44 memcpy(&ctx->buffer_out[ctx->buffer_used], ctx->replace_to, \
45 ctx->replace_len); \
47 ctx->buffer_used += ctx->replace_len; \
51 #define LXB_ENCODING_ENCODE_ERROR_P(ctx) \ argument
53 if (ctx->replace_to == NULL) { \
58 if ((ctx->buffer_used + ctx->replace_len) > ctx->buffer_length) { \
63 memcpy(&ctx->buffer_out[ctx->buffer_used], ctx->replace_to, \
64 ctx->replace_len); \
66 ctx->buffer_used += ctx->replace_len; \
80 LXB_ENCODING_ENCODE_APPEND_P(ctx, cp); \
86 LXB_ENCODING_ENCODE_ERROR_P(ctx); \
90 LXB_ENCODING_ENCODE_APPEND_P(ctx, (uintptr_t) hash->value); \
115 lxb_encoding_encode_default(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_default() argument
118 return lxb_encoding_encode_utf_8(ctx, cps, end); in lxb_encoding_encode_default()
122 lxb_encoding_encode_auto(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_auto() argument
130 lxb_encoding_encode_undefined(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_undefined() argument
138 lxb_encoding_encode_big5(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_big5() argument
148 LXB_ENCODING_ENCODE_APPEND(ctx, cp); in lxb_encoding_encode_big5()
155 LXB_ENCODING_ENCODE_ERROR(ctx); in lxb_encoding_encode_big5()
159 if ((ctx->buffer_used + 2) > ctx->buffer_length) { in lxb_encoding_encode_big5()
163 ctx->buffer_out[ ctx->buffer_used++ ] = ((uint32_t) (uintptr_t) hash->value) / 157 + 0x81; in lxb_encoding_encode_big5()
166ctx->buffer_out[ ctx->buffer_used++ ] = (((uint32_t) (uintptr_t) hash->value) % 157) + 0x40; in lxb_encoding_encode_big5()
169ctx->buffer_out[ ctx->buffer_used++ ] = (((uint32_t) (uintptr_t) hash->value) % 157) + 0x62; in lxb_encoding_encode_big5()
177 lxb_encoding_encode_euc_jp(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_euc_jp() argument
187 LXB_ENCODING_ENCODE_APPEND(ctx, cp); in lxb_encoding_encode_euc_jp()
192 LXB_ENCODING_ENCODE_APPEND(ctx, 0x5C); in lxb_encoding_encode_euc_jp()
197 LXB_ENCODING_ENCODE_APPEND(ctx, 0x7E); in lxb_encoding_encode_euc_jp()
202 if ((ctx->buffer_used + 2) > ctx->buffer_length) { in lxb_encoding_encode_euc_jp()
206 ctx->buffer_out[ ctx->buffer_used++ ] = 0x8E; in lxb_encoding_encode_euc_jp()
207 ctx->buffer_out[ ctx->buffer_used++ ] = cp - 0xFF61 + 0xA1; in lxb_encoding_encode_euc_jp()
219 LXB_ENCODING_ENCODE_ERROR(ctx); in lxb_encoding_encode_euc_jp()
223 if ((ctx->buffer_used + 2) > ctx->buffer_length) { in lxb_encoding_encode_euc_jp()
227 ctx->buffer_out[ ctx->buffer_used++ ] = (uint32_t) (uintptr_t) hash->value / 94 + 0xA1; in lxb_encoding_encode_euc_jp()
228 ctx->buffer_out[ ctx->buffer_used++ ] = (uint32_t) (uintptr_t) hash->value % 94 + 0xA1; in lxb_encoding_encode_euc_jp()
235 lxb_encoding_encode_euc_kr(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_euc_kr() argument
245 LXB_ENCODING_ENCODE_APPEND(ctx, cp); in lxb_encoding_encode_euc_kr()
252 LXB_ENCODING_ENCODE_ERROR(ctx); in lxb_encoding_encode_euc_kr()
256 if ((ctx->buffer_used + 2) > ctx->buffer_length) { in lxb_encoding_encode_euc_kr()
260 ctx->buffer_out[ ctx->buffer_used++ ] = (uint32_t) (uintptr_t) hash->value / 190 + 0x81; in lxb_encoding_encode_euc_kr()
261 ctx->buffer_out[ ctx->buffer_used++ ] = (uint32_t) (uintptr_t) hash->value % 190 + 0x41; in lxb_encoding_encode_euc_kr()
268 lxb_encoding_encode_gbk(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_gbk() argument
278 LXB_ENCODING_ENCODE_APPEND(ctx, cp); in lxb_encoding_encode_gbk()
283 LXB_ENCODING_ENCODE_ERROR(ctx); in lxb_encoding_encode_gbk()
288 LXB_ENCODING_ENCODE_APPEND(ctx, 0x80); in lxb_encoding_encode_gbk()
295 LXB_ENCODING_ENCODE_ERROR(ctx); in lxb_encoding_encode_gbk()
299 if ((ctx->buffer_used + 2) > ctx->buffer_length) { in lxb_encoding_encode_gbk()
303 ctx->buffer_out[ ctx->buffer_used++ ] = (lxb_char_t) (uintptr_t) hash->value / 190 + 0x81; in lxb_encoding_encode_gbk()
306ctx->buffer_out[ ctx->buffer_used++ ] = ((lxb_char_t) (uintptr_t) hash->value % 190) + 0x40; in lxb_encoding_encode_gbk()
309ctx->buffer_out[ ctx->buffer_used++ ] = ((lxb_char_t) (uintptr_t) hash->value % 190) + 0x41; in lxb_encoding_encode_gbk()
317 lxb_encoding_encode_ibm866(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_ibm866() argument
326 lxb_encoding_encode_iso_2022_jp(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_iso_2022_jp() argument
335 state = ctx->state; in lxb_encoding_encode_iso_2022_jp()
342 switch (ctx->state) { in lxb_encoding_encode_iso_2022_jp()
349 LXB_ENCODING_ENCODE_APPEND(ctx, cp); in lxb_encoding_encode_iso_2022_jp()
358 if ((ctx->buffer_used + 4) > ctx->buffer_length) { in lxb_encoding_encode_iso_2022_jp()
362 ctx->state = LXB_ENCODING_ENCODE_2022_JP_ROMAN; in lxb_encoding_encode_iso_2022_jp()
365 memcpy(&ctx->buffer_out[ctx->buffer_used], in lxb_encoding_encode_iso_2022_jp()
367 ctx->buffer_used += 4; in lxb_encoding_encode_iso_2022_jp()
372 memcpy(&ctx->buffer_out[ctx->buffer_used], in lxb_encoding_encode_iso_2022_jp()
374 ctx->buffer_used += 4; in lxb_encoding_encode_iso_2022_jp()
393 LXB_ENCODING_ENCODE_APPEND(ctx, 0x5C); in lxb_encoding_encode_iso_2022_jp()
397 LXB_ENCODING_ENCODE_APPEND(ctx, 0x7E); in lxb_encoding_encode_iso_2022_jp()
401 LXB_ENCODING_ENCODE_APPEND(ctx, cp); in lxb_encoding_encode_iso_2022_jp()
409 if ((ctx->buffer_used + 4) > ctx->buffer_length) { in lxb_encoding_encode_iso_2022_jp()
413 ctx->state = LXB_ENCODING_ENCODE_2022_JP_ASCII; in lxb_encoding_encode_iso_2022_jp()
415 memcpy(&ctx->buffer_out[ctx->buffer_used], "\x1B\x28\x42", 3); in lxb_encoding_encode_iso_2022_jp()
416 ctx->buffer_used += 3; in lxb_encoding_encode_iso_2022_jp()
418 ctx->buffer_out[ ctx->buffer_used++ ] = (lxb_char_t) cp; in lxb_encoding_encode_iso_2022_jp()
426 if ((ctx->buffer_used + 4) > ctx->buffer_length) { in lxb_encoding_encode_iso_2022_jp()
430 ctx->state = LXB_ENCODING_ENCODE_2022_JP_ASCII; in lxb_encoding_encode_iso_2022_jp()
432 memcpy(&ctx->buffer_out[ctx->buffer_used], "\x1B\x28\x42", 3); in lxb_encoding_encode_iso_2022_jp()
433 ctx->buffer_used += 3; in lxb_encoding_encode_iso_2022_jp()
435 ctx->buffer_out[ ctx->buffer_used++ ] = (lxb_char_t) cp; in lxb_encoding_encode_iso_2022_jp()
440 if ((ctx->buffer_used + 4) > ctx->buffer_length) { in lxb_encoding_encode_iso_2022_jp()
444 ctx->state = LXB_ENCODING_ENCODE_2022_JP_ROMAN; in lxb_encoding_encode_iso_2022_jp()
447 memcpy(&ctx->buffer_out[ctx->buffer_used], in lxb_encoding_encode_iso_2022_jp()
449 ctx->buffer_used += 4; in lxb_encoding_encode_iso_2022_jp()
454 memcpy(&ctx->buffer_out[ctx->buffer_used], in lxb_encoding_encode_iso_2022_jp()
456 ctx->buffer_used += 4; in lxb_encoding_encode_iso_2022_jp()
464 if ((ctx->buffer_used + 2) > ctx->buffer_length) { in lxb_encoding_encode_iso_2022_jp()
482 if (ctx->state != LXB_ENCODING_ENCODE_2022_JP_JIS0208) { in lxb_encoding_encode_iso_2022_jp()
483 if ((ctx->buffer_used + 3) > ctx->buffer_length) { in lxb_encoding_encode_iso_2022_jp()
487 memcpy(&ctx->buffer_out[ctx->buffer_used], "\x1B\x24\x42", 3); in lxb_encoding_encode_iso_2022_jp()
488 ctx->buffer_used += 3; in lxb_encoding_encode_iso_2022_jp()
490 ctx->state = LXB_ENCODING_ENCODE_2022_JP_JIS0208; in lxb_encoding_encode_iso_2022_jp()
496 ctx->buffer_out[ ctx->buffer_used++ ] = (uint32_t) (uintptr_t) hash->value / 94 + 0x21; in lxb_encoding_encode_iso_2022_jp()
497 ctx->buffer_out[ ctx->buffer_used++ ] = (uint32_t) (uintptr_t) hash->value % 94 + 0x21; in lxb_encoding_encode_iso_2022_jp()
503 ctx->state = state; in lxb_encoding_encode_iso_2022_jp()
504 ctx->buffer_used -= size; in lxb_encoding_encode_iso_2022_jp()
510 ctx->buffer_used -= size; in lxb_encoding_encode_iso_2022_jp()
511 LXB_ENCODING_ENCODE_ERROR(ctx); in lxb_encoding_encode_iso_2022_jp()
518 lxb_encoding_encode_iso_2022_jp_eof(lxb_encoding_encode_t *ctx) in lxb_encoding_encode_iso_2022_jp_eof() argument
520 if (ctx->state != LXB_ENCODING_ENCODE_2022_JP_ASCII) { in lxb_encoding_encode_iso_2022_jp_eof()
521 if ((ctx->buffer_used + 3) > ctx->buffer_length) { in lxb_encoding_encode_iso_2022_jp_eof()
525 memcpy(&ctx->buffer_out[ctx->buffer_used], "\x1B\x28\x42", 3); in lxb_encoding_encode_iso_2022_jp_eof()
526 ctx->buffer_used += 3; in lxb_encoding_encode_iso_2022_jp_eof()
533 lxb_encoding_encode_iso_8859_10(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_iso_8859_10() argument
541 lxb_encoding_encode_iso_8859_13(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_iso_8859_13() argument
549 lxb_encoding_encode_iso_8859_14(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_iso_8859_14() argument
557 lxb_encoding_encode_iso_8859_15(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_iso_8859_15() argument
565 lxb_encoding_encode_iso_8859_16(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_iso_8859_16() argument
573 lxb_encoding_encode_iso_8859_2(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_iso_8859_2() argument
581 lxb_encoding_encode_iso_8859_3(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_iso_8859_3() argument
589 lxb_encoding_encode_iso_8859_4(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_iso_8859_4() argument
597 lxb_encoding_encode_iso_8859_5(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_iso_8859_5() argument
605 lxb_encoding_encode_iso_8859_6(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_iso_8859_6() argument
613 lxb_encoding_encode_iso_8859_7(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_iso_8859_7() argument
621 lxb_encoding_encode_iso_8859_8(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_iso_8859_8() argument
629 lxb_encoding_encode_iso_8859_8_i(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_iso_8859_8_i() argument
637 lxb_encoding_encode_koi8_r(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_koi8_r() argument
645 lxb_encoding_encode_koi8_u(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_koi8_u() argument
674 lxb_encoding_encode_shift_jis(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_shift_jis() argument
685 LXB_ENCODING_ENCODE_APPEND(ctx, cp); in lxb_encoding_encode_shift_jis()
690 LXB_ENCODING_ENCODE_APPEND(ctx, cp - 0xFF61 + 0xA1); in lxb_encoding_encode_shift_jis()
696 LXB_ENCODING_ENCODE_APPEND(ctx, 0x5C); in lxb_encoding_encode_shift_jis()
700 LXB_ENCODING_ENCODE_APPEND(ctx, 0x7E); in lxb_encoding_encode_shift_jis()
710 LXB_ENCODING_ENCODE_ERROR(ctx); in lxb_encoding_encode_shift_jis()
714 if ((ctx->buffer_used + 2) > ctx->buffer_length) { in lxb_encoding_encode_shift_jis()
721 ctx->buffer_out[ctx->buffer_used++ ] = lead + ((lead < 0x1F) ? 0x81 : 0xC1); in lxb_encoding_encode_shift_jis()
722 ctx->buffer_out[ctx->buffer_used++ ] = trail + ((trail < 0x3F) ? 0x40 : 0x41); in lxb_encoding_encode_shift_jis()
729 lxb_encoding_encode_utf_16_write(lxb_encoding_encode_t *ctx, bool is_be, in lxb_encoding_encode_utf_16_write() argument
733 ctx->buffer_out[ctx->buffer_used++] = cp >> 8; in lxb_encoding_encode_utf_16_write()
734 ctx->buffer_out[ctx->buffer_used++] = cp & 0x00FF; in lxb_encoding_encode_utf_16_write()
739 ctx->buffer_out[ctx->buffer_used++] = cp & 0x00FF; in lxb_encoding_encode_utf_16_write()
740 ctx->buffer_out[ctx->buffer_used++] = cp >> 8; in lxb_encoding_encode_utf_16_write()
744 lxb_encoding_encode_utf_16(lxb_encoding_encode_t *ctx, bool is_be, in lxb_encoding_encode_utf_16() argument
753 if ((ctx->buffer_used + 2) > ctx->buffer_length) { in lxb_encoding_encode_utf_16()
757 lxb_encoding_encode_utf_16_write(ctx, is_be, cp); in lxb_encoding_encode_utf_16()
762 if ((ctx->buffer_used + 4) > ctx->buffer_length) { in lxb_encoding_encode_utf_16()
768 lxb_encoding_encode_utf_16_write(ctx, is_be, (0xD800 | (cp >> 0x0A))); in lxb_encoding_encode_utf_16()
769 lxb_encoding_encode_utf_16_write(ctx, is_be, (0xDC00 | (cp & 0x03FF))); in lxb_encoding_encode_utf_16()
776 lxb_encoding_encode_utf_16be(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_utf_16be() argument
779 return lxb_encoding_encode_utf_16(ctx, true, cps, end); in lxb_encoding_encode_utf_16be()
783 lxb_encoding_encode_utf_16le(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_utf_16le() argument
786 return lxb_encoding_encode_utf_16(ctx, false, cps, end); in lxb_encoding_encode_utf_16le()
790 lxb_encoding_encode_utf_8(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_utf_8() argument
800 if ((ctx->buffer_used + 1) > ctx->buffer_length) { in lxb_encoding_encode_utf_8()
807 ctx->buffer_out[ ctx->buffer_used++ ] = (lxb_char_t) cp; in lxb_encoding_encode_utf_8()
810 if ((ctx->buffer_used + 2) > ctx->buffer_length) { in lxb_encoding_encode_utf_8()
817 ctx->buffer_out[ ctx->buffer_used++ ] = (lxb_char_t) (0xC0 | (cp >> 6 )); in lxb_encoding_encode_utf_8()
818 ctx->buffer_out[ ctx->buffer_used++ ] = (lxb_char_t) (0x80 | (cp & 0x3F)); in lxb_encoding_encode_utf_8()
821 if ((ctx->buffer_used + 3) > ctx->buffer_length) { in lxb_encoding_encode_utf_8()
828 ctx->buffer_out[ ctx->buffer_used++ ] = (lxb_char_t) (0xE0 | ((cp >> 12))); in lxb_encoding_encode_utf_8()
829 ctx->buffer_out[ ctx->buffer_used++ ] = (lxb_char_t) (0x80 | ((cp >> 6 ) & 0x3F)); in lxb_encoding_encode_utf_8()
830 ctx->buffer_out[ ctx->buffer_used++ ] = (lxb_char_t) (0x80 | ( cp & 0x3F)); in lxb_encoding_encode_utf_8()
833 if ((ctx->buffer_used + 4) > ctx->buffer_length) { in lxb_encoding_encode_utf_8()
840 ctx->buffer_out[ ctx->buffer_used++ ] = (lxb_char_t) (0xF0 | ( cp >> 18)); in lxb_encoding_encode_utf_8()
841 ctx->buffer_out[ ctx->buffer_used++ ] = (lxb_char_t) (0x80 | ((cp >> 12) & 0x3F)); in lxb_encoding_encode_utf_8()
842 ctx->buffer_out[ ctx->buffer_used++ ] = (lxb_char_t) (0x80 | ((cp >> 6 ) & 0x3F)); in lxb_encoding_encode_utf_8()
843 ctx->buffer_out[ ctx->buffer_used++ ] = (lxb_char_t) (0x80 | ( cp & 0x3F)); in lxb_encoding_encode_utf_8()
847 LXB_ENCODING_ENCODE_ERROR(ctx); in lxb_encoding_encode_utf_8()
900 lxb_encoding_encode_gb18030(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_gb18030() argument
911 LXB_ENCODING_ENCODE_APPEND(ctx, cp); in lxb_encoding_encode_gb18030()
916 LXB_ENCODING_ENCODE_ERROR(ctx); in lxb_encoding_encode_gb18030()
923 if ((ctx->buffer_used + 2) > ctx->buffer_length) { in lxb_encoding_encode_gb18030()
927 ctx->buffer_out[ ctx->buffer_used++ ] = (uint32_t) (uintptr_t) hash->value / 190 + 0x81; in lxb_encoding_encode_gb18030()
930ctx->buffer_out[ ctx->buffer_used++ ] = ((uint32_t) (uintptr_t) hash->value % 190) + 0x40; in lxb_encoding_encode_gb18030()
933ctx->buffer_out[ ctx->buffer_used++ ] = ((uint32_t) (uintptr_t) hash->value % 190) + 0x41; in lxb_encoding_encode_gb18030()
939 if ((ctx->buffer_used + 4) > ctx->buffer_length) { in lxb_encoding_encode_gb18030()
945 ctx->buffer_out[ ctx->buffer_used++ ] = (index / (10 * 126 * 10)) + 0x81; in lxb_encoding_encode_gb18030()
946 ctx->buffer_out[ ctx->buffer_used++ ] = ((index % (10 * 126 * 10)) / (10 * 126)) + 0x30; in lxb_encoding_encode_gb18030()
950 ctx->buffer_out[ ctx->buffer_used++ ] = (index / 10) + 0x81; in lxb_encoding_encode_gb18030()
951 ctx->buffer_out[ ctx->buffer_used++ ] = (index % 10) + 0x30; in lxb_encoding_encode_gb18030()
958 lxb_encoding_encode_macintosh(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_macintosh() argument
966 lxb_encoding_encode_replacement(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_replacement() argument
974 lxb_encoding_encode_windows_1250(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_windows_1250() argument
982 lxb_encoding_encode_windows_1251(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_windows_1251() argument
990 lxb_encoding_encode_windows_1252(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_windows_1252() argument
998 lxb_encoding_encode_windows_1253(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_windows_1253() argument
1006 lxb_encoding_encode_windows_1254(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_windows_1254() argument
1014 lxb_encoding_encode_windows_1255(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_windows_1255() argument
1022 lxb_encoding_encode_windows_1256(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_windows_1256() argument
1030 lxb_encoding_encode_windows_1257(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_windows_1257() argument
1038 lxb_encoding_encode_windows_1258(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_windows_1258() argument
1046 lxb_encoding_encode_windows_874(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_windows_874() argument
1054 lxb_encoding_encode_x_mac_cyrillic(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_x_mac_cyrillic() argument
1062 lxb_encoding_encode_x_user_defined(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cps, in lxb_encoding_encode_x_user_defined() argument
1071 LXB_ENCODING_ENCODE_APPEND(ctx, cp); in lxb_encoding_encode_x_user_defined()
1074 LXB_ENCODING_ENCODE_APPEND(ctx, (cp - 0xF780 + 0x80)); in lxb_encoding_encode_x_user_defined()
1077 LXB_ENCODING_ENCODE_ERROR(ctx); in lxb_encoding_encode_x_user_defined()
1088 lxb_encoding_encode_default_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_default_single() argument
1091 return lxb_encoding_encode_utf_8_single(ctx, data, end, cp); in lxb_encoding_encode_default_single()
1095 lxb_encoding_encode_auto_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_auto_single() argument
1102 lxb_encoding_encode_undefined_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_undefined_single() argument
1109 lxb_encoding_encode_big5_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_big5_single() argument
1143 lxb_encoding_encode_euc_jp_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_euc_jp_single() argument
1194 lxb_encoding_encode_euc_kr_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_euc_kr_single() argument
1222 lxb_encoding_encode_gbk_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_gbk_single() argument
1266 lxb_encoding_encode_ibm866_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_ibm866_single() argument
1274 lxb_encoding_encode_iso_2022_jp_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_iso_2022_jp_single() argument
1282 state = ctx->state; in lxb_encoding_encode_iso_2022_jp_single()
1286 switch (ctx->state) { in lxb_encoding_encode_iso_2022_jp_single()
1307 ctx->state = LXB_ENCODING_ENCODE_2022_JP_ROMAN; in lxb_encoding_encode_iso_2022_jp_single()
1356 ctx->state = LXB_ENCODING_ENCODE_2022_JP_ASCII; in lxb_encoding_encode_iso_2022_jp_single()
1374 ctx->state = LXB_ENCODING_ENCODE_2022_JP_ASCII; in lxb_encoding_encode_iso_2022_jp_single()
1389 ctx->state = LXB_ENCODING_ENCODE_2022_JP_ROMAN; in lxb_encoding_encode_iso_2022_jp_single()
1425 if (ctx->state != LXB_ENCODING_ENCODE_2022_JP_JIS0208) { in lxb_encoding_encode_iso_2022_jp_single()
1433 ctx->state = LXB_ENCODING_ENCODE_2022_JP_JIS0208; in lxb_encoding_encode_iso_2022_jp_single()
1446 ctx->state = state; in lxb_encoding_encode_iso_2022_jp_single()
1459 lxb_encoding_encode_iso_2022_jp_eof_single(lxb_encoding_encode_t *ctx, in lxb_encoding_encode_iso_2022_jp_eof_single() argument
1462 if (ctx->state != LXB_ENCODING_ENCODE_2022_JP_ASCII) { in lxb_encoding_encode_iso_2022_jp_eof_single()
1470 ctx->state = LXB_ENCODING_ENCODE_2022_JP_ASCII; in lxb_encoding_encode_iso_2022_jp_eof_single()
1479 lxb_encoding_encode_iso_8859_10_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_iso_8859_10_single() argument
1487 lxb_encoding_encode_iso_8859_13_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_iso_8859_13_single() argument
1495 lxb_encoding_encode_iso_8859_14_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_iso_8859_14_single() argument
1503 lxb_encoding_encode_iso_8859_15_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_iso_8859_15_single() argument
1511 lxb_encoding_encode_iso_8859_16_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_iso_8859_16_single() argument
1519 lxb_encoding_encode_iso_8859_2_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_iso_8859_2_single() argument
1527 lxb_encoding_encode_iso_8859_3_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_iso_8859_3_single() argument
1535 lxb_encoding_encode_iso_8859_4_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_iso_8859_4_single() argument
1543 lxb_encoding_encode_iso_8859_5_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_iso_8859_5_single() argument
1551 lxb_encoding_encode_iso_8859_6_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_iso_8859_6_single() argument
1559 lxb_encoding_encode_iso_8859_7_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_iso_8859_7_single() argument
1567 lxb_encoding_encode_iso_8859_8_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_iso_8859_8_single() argument
1575 lxb_encoding_encode_iso_8859_8_i_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_iso_8859_8_i_single() argument
1583 lxb_encoding_encode_koi8_r_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_koi8_r_single() argument
1591 lxb_encoding_encode_koi8_u_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_koi8_u_single() argument
1599 lxb_encoding_encode_shift_jis_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_shift_jis_single() argument
1665 lxb_encoding_encode_utf_16_single(lxb_encoding_encode_t *ctx, bool is_be, in lxb_encoding_encode_utf_16_single() argument
1691 lxb_encoding_encode_utf_16be_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_utf_16be_single() argument
1694 return lxb_encoding_encode_utf_16_single(ctx, true, data, end, cp); in lxb_encoding_encode_utf_16be_single()
1698 lxb_encoding_encode_utf_16le_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_utf_16le_single() argument
1701 return lxb_encoding_encode_utf_16_single(ctx, false, data, end, cp); in lxb_encoding_encode_utf_16le_single()
1705 lxb_encoding_encode_utf_8_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_utf_8_single() argument
1777 lxb_encoding_encode_gb18030_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_gb18030_single() argument
1830 lxb_encoding_encode_macintosh_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_macintosh_single() argument
1838 lxb_encoding_encode_replacement_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_replacement_single() argument
1846 lxb_encoding_encode_windows_1250_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_windows_1250_single() argument
1854 lxb_encoding_encode_windows_1251_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_windows_1251_single() argument
1862 lxb_encoding_encode_windows_1252_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_windows_1252_single() argument
1870 lxb_encoding_encode_windows_1253_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_windows_1253_single() argument
1878 lxb_encoding_encode_windows_1254_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_windows_1254_single() argument
1886 lxb_encoding_encode_windows_1255_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_windows_1255_single() argument
1894 lxb_encoding_encode_windows_1256_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_windows_1256_single() argument
1902 lxb_encoding_encode_windows_1257_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_windows_1257_single() argument
1910 lxb_encoding_encode_windows_1258_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_windows_1258_single() argument
1918 lxb_encoding_encode_windows_874_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_windows_874_single() argument
1926 lxb_encoding_encode_x_mac_cyrillic_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_x_mac_cyrillic_single() argument
1934 lxb_encoding_encode_x_user_defined_single(lxb_encoding_encode_t *ctx, lxb_char_t **data, in lxb_encoding_encode_x_user_defined_single() argument