Lines Matching refs:target

107 _nc_conv_to_utf8(unsigned char *target, unsigned source, unsigned limit)  in _nc_conv_to_utf8()  argument
129 if (target != 0) { in _nc_conv_to_utf8()
132 target[0] = CH(0); in _nc_conv_to_utf8()
136 target[1] = UChar(0x80 | (CH(0) & 0x3f)); in _nc_conv_to_utf8()
137 target[0] = UChar(0xc0 | (CH(0) >> 6) | ((CH(1) & 0x07) << 2)); in _nc_conv_to_utf8()
141 target[2] = UChar(0x80 | (CH(0) & 0x3f)); in _nc_conv_to_utf8()
142 target[1] = UChar(0x80 | (CH(0) >> 6) | ((CH(1) & 0x0f) << 2)); in _nc_conv_to_utf8()
143 target[0] = UChar(0xe0 | ((int) (CH(1) & 0xf0) >> 4)); in _nc_conv_to_utf8()
147 target[3] = UChar(0x80 | (CH(0) & 0x3f)); in _nc_conv_to_utf8()
148 target[2] = UChar(0x80 | (CH(0) >> 6) | ((CH(1) & 0x0f) << 2)); in _nc_conv_to_utf8()
149 target[1] = UChar(0x80 | in _nc_conv_to_utf8()
152 target[0] = UChar(0xf0 | ((int) (CH(2) & 0x1f) >> 2)); in _nc_conv_to_utf8()
156 target[4] = UChar(0x80 | (CH(0) & 0x3f)); in _nc_conv_to_utf8()
157 target[3] = UChar(0x80 | (CH(0) >> 6) | ((CH(1) & 0x0f) << 2)); in _nc_conv_to_utf8()
158 target[2] = UChar(0x80 | in _nc_conv_to_utf8()
161 target[1] = UChar(0x80 | (CH(2) >> 2)); in _nc_conv_to_utf8()
162 target[0] = UChar(0xf8 | (CH(3) & 0x03)); in _nc_conv_to_utf8()
166 target[5] = UChar(0x80 | (CH(0) & 0x3f)); in _nc_conv_to_utf8()
167 target[4] = UChar(0x80 | (CH(0) >> 6) | ((CH(1) & 0x0f) << 2)); in _nc_conv_to_utf8()
168 target[3] = UChar(0x80 | (CH(1) >> 4) | ((CH(2) & 0x03) << 4)); in _nc_conv_to_utf8()
169 target[2] = UChar(0x80 | (CH(2) >> 2)); in _nc_conv_to_utf8()
170 target[1] = UChar(0x80 | (CH(3) & 0x3f)); in _nc_conv_to_utf8()
171 target[0] = UChar(0xfc | ((int) (CH(3) & 0x40) >> 6)); in _nc_conv_to_utf8()
181 _nc_conv_to_utf32(unsigned *target, const char *source, unsigned limit) in _nc_conv_to_utf32() argument
183 #define CH(n) UChar((*target) >> ((n) * 8)) in _nc_conv_to_utf32()
228 if (target != 0) { in _nc_conv_to_utf32()
230 *target = 0; in _nc_conv_to_utf32()
232 *target |= (unsigned) (source[rc - j] & 0x3f) << shift; in _nc_conv_to_utf32()
235 *target |= mask << shift; in _nc_conv_to_utf32()