Lines Matching refs:str
76 int UTF8_getc(const unsigned char *str, int len, unsigned long *val) in UTF8_getc() argument
82 p = str; in UTF8_getc()
155 int UTF8_putc(unsigned char *str, int len, unsigned long value) in UTF8_putc() argument
157 if(!str) len = 6; /* Maximum we will need */ in UTF8_putc()
160 if(str) *str = (unsigned char)value; in UTF8_putc()
165 if(str) { in UTF8_putc()
166 *str++ = (unsigned char)(((value >> 6) & 0x1f) | 0xc0); in UTF8_putc()
167 *str = (unsigned char)((value & 0x3f) | 0x80); in UTF8_putc()
173 if(str) { in UTF8_putc()
174 *str++ = (unsigned char)(((value >> 12) & 0xf) | 0xe0); in UTF8_putc()
175 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80); in UTF8_putc()
176 *str = (unsigned char)((value & 0x3f) | 0x80); in UTF8_putc()
182 if(str) { in UTF8_putc()
183 *str++ = (unsigned char)(((value >> 18) & 0x7) | 0xf0); in UTF8_putc()
184 *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80); in UTF8_putc()
185 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80); in UTF8_putc()
186 *str = (unsigned char)((value & 0x3f) | 0x80); in UTF8_putc()
192 if(str) { in UTF8_putc()
193 *str++ = (unsigned char)(((value >> 24) & 0x3) | 0xf8); in UTF8_putc()
194 *str++ = (unsigned char)(((value >> 18) & 0x3f) | 0x80); in UTF8_putc()
195 *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80); in UTF8_putc()
196 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80); in UTF8_putc()
197 *str = (unsigned char)((value & 0x3f) | 0x80); in UTF8_putc()
202 if(str) { in UTF8_putc()
203 *str++ = (unsigned char)(((value >> 30) & 0x1) | 0xfc); in UTF8_putc()
204 *str++ = (unsigned char)(((value >> 24) & 0x3f) | 0x80); in UTF8_putc()
205 *str++ = (unsigned char)(((value >> 18) & 0x3f) | 0x80); in UTF8_putc()
206 *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80); in UTF8_putc()
207 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80); in UTF8_putc()
208 *str = (unsigned char)((value & 0x3f) | 0x80); in UTF8_putc()