Lines Matching refs:pos
58 device->pos= 0; in mbfl_memory_device_init()
97 device->pos = 0; in mbfl_memory_device_clear()
105 device->pos = 0; in mbfl_memory_device_reset()
112 if (device->pos > 0) { in mbfl_memory_device_unput()
113 device->pos--; in mbfl_memory_device_unput()
121 result->len = device->pos; in mbfl_memory_device_result()
126 device->pos= 0; in mbfl_memory_device_result()
143 if (device->pos >= device->length) { in mbfl_memory_device_output()
161 device->buffer[device->pos++] = (unsigned char)c; in mbfl_memory_device_output()
170 if ((device->pos + 2) >= device->length) { in mbfl_memory_device_output2()
188 device->buffer[device->pos++] = (unsigned char)((c >> 8) & 0xff); in mbfl_memory_device_output2()
189 device->buffer[device->pos++] = (unsigned char)(c & 0xff); in mbfl_memory_device_output2()
199 if ((device->pos + 4) >= device->length) { in mbfl_memory_device_output4()
217 device->buffer[device->pos++] = (unsigned char)((c >> 24) & 0xff); in mbfl_memory_device_output4()
218 device->buffer[device->pos++] = (unsigned char)((c >> 16) & 0xff); in mbfl_memory_device_output4()
219 device->buffer[device->pos++] = (unsigned char)((c >> 8) & 0xff); in mbfl_memory_device_output4()
220 device->buffer[device->pos++] = (unsigned char)(c & 0xff); in mbfl_memory_device_output4()
239 if ((device->pos + len) >= device->length) { in mbfl_memory_device_strcat()
256 w = &device->buffer[device->pos]; in mbfl_memory_device_strcat()
257 device->pos += len; in mbfl_memory_device_strcat()
271 if ((device->pos + len) >= device->length) { in mbfl_memory_device_strncat()
287 w = &device->buffer[device->pos]; in mbfl_memory_device_strncat()
288 device->pos += len; in mbfl_memory_device_strncat()
303 if ((dest->pos + src->pos) >= dest->length) { in mbfl_memory_device_devcat()
305 int newlen = dest->length + src->pos + MBFL_MEMORY_DEVICE_ALLOC_SIZE; in mbfl_memory_device_devcat()
320 w = &dest->buffer[dest->pos]; in mbfl_memory_device_devcat()
321 n = src->pos; in mbfl_memory_device_devcat()
322 dest->pos += n; in mbfl_memory_device_devcat()
337 device->pos= 0; in mbfl_wchar_device_init()
351 device->pos = 0; in mbfl_wchar_device_clear()
360 if (device->pos >= device->length) { in mbfl_wchar_device_output()
378 device->buffer[device->pos++] = c; in mbfl_wchar_device_output()