Lines Matching refs:out_index
287 out_index = 0; in cr_utils_utf8_to_ucs4() local
307 for (in_index = 0, out_index = 0; in cr_utils_utf8_to_ucs4()
308 (in_index < in_len) && (out_index < out_len); in cr_utils_utf8_to_ucs4()
309 in_index++, out_index++) { in cr_utils_utf8_to_ucs4()
417 a_out[out_index] = c; in cr_utils_utf8_to_ucs4()
421 *a_out_len = out_index + 1; in cr_utils_utf8_to_ucs4()
764 out_index = 0; in cr_utils_ucs4_to_utf8() local
783 a_out[out_index] = a_in[in_index]; in cr_utils_ucs4_to_utf8()
784 out_index++; in cr_utils_ucs4_to_utf8()
786 a_out[out_index] = (0xC0 | (a_in[in_index] >> 6)); in cr_utils_ucs4_to_utf8()
787 a_out[out_index + 1] = in cr_utils_ucs4_to_utf8()
789 out_index += 2; in cr_utils_ucs4_to_utf8()
791 a_out[out_index] = (0xE0 | (a_in[in_index] >> 12)); in cr_utils_ucs4_to_utf8()
792 a_out[out_index + 1] = in cr_utils_ucs4_to_utf8()
794 a_out[out_index + 2] = in cr_utils_ucs4_to_utf8()
796 out_index += 3; in cr_utils_ucs4_to_utf8()
798 a_out[out_index] = (0xF0 | (a_in[in_index] >> 18)); in cr_utils_ucs4_to_utf8()
799 a_out[out_index + 1] in cr_utils_ucs4_to_utf8()
801 a_out[out_index + 2] in cr_utils_ucs4_to_utf8()
803 a_out[out_index + 3] in cr_utils_ucs4_to_utf8()
805 out_index += 4; in cr_utils_ucs4_to_utf8()
807 a_out[out_index] = (0xF8 | (a_in[in_index] >> 24)); in cr_utils_ucs4_to_utf8()
808 a_out[out_index + 1] = in cr_utils_ucs4_to_utf8()
810 a_out[out_index + 2] in cr_utils_ucs4_to_utf8()
812 a_out[out_index + 3] in cr_utils_ucs4_to_utf8()
814 a_out[out_index + 4] in cr_utils_ucs4_to_utf8()
816 out_index += 5; in cr_utils_ucs4_to_utf8()
818 a_out[out_index] = (0xFC | (a_in[in_index] >> 30)); in cr_utils_ucs4_to_utf8()
819 a_out[out_index + 1] = in cr_utils_ucs4_to_utf8()
821 a_out[out_index + 2] in cr_utils_ucs4_to_utf8()
823 a_out[out_index + 3] in cr_utils_ucs4_to_utf8()
825 a_out[out_index + 4] in cr_utils_ucs4_to_utf8()
827 a_out[out_index + 4] in cr_utils_ucs4_to_utf8()
829 out_index += 6; in cr_utils_ucs4_to_utf8()
838 *a_out_len = out_index + 1; in cr_utils_ucs4_to_utf8()
900 gulong out_index = 0, in cr_utils_ucs1_to_utf8() local
919 for (in_index = 0, out_index = 0; in cr_utils_ucs1_to_utf8()
920 (in_index < in_len) && (out_index < out_len); in_index++) { in cr_utils_ucs1_to_utf8()
926 a_out[out_index] = a_in[in_index]; in cr_utils_ucs1_to_utf8()
927 out_index++; in cr_utils_ucs1_to_utf8()
929 a_out[out_index] = (0xC0 | (a_in[in_index] >> 6)); in cr_utils_ucs1_to_utf8()
930 a_out[out_index + 1] = in cr_utils_ucs1_to_utf8()
932 out_index += 2; in cr_utils_ucs1_to_utf8()
937 *a_out_len = out_index; in cr_utils_ucs1_to_utf8()
1010 out_index = 0, in cr_utils_utf8_to_ucs1() local
1031 for (in_index = 0, out_index = 0; in cr_utils_utf8_to_ucs1()
1032 (in_index < in_len) && (out_index < out_len); in cr_utils_utf8_to_ucs1()
1033 in_index++, out_index++) { in cr_utils_utf8_to_ucs1()
1129 a_out[out_index] = c; in cr_utils_utf8_to_ucs1()
1133 *a_out_len = out_index; in cr_utils_utf8_to_ucs1()