Lines Matching refs:bytes
40 returns the number of bytes occupied by the multibyte sequence.
164 size_t bytes; /* number of bytes of current character, > 0 */
167 char buf[MBCHAR_BUF_SIZE]; /* room for the bytes, used for file input only */
170 /* EOF (not a real character) is represented with bytes = 0 and
177 #define mb_len(mbc) ((mbc).bytes)
189 : (mbc1).bytes == (mbc2).bytes \
190 ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \
191 : (mbc1).bytes < (mbc2).bytes \
192 ? (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) > 0 ? 1 : -1) \
193 : (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc2).bytes) >= 0 ? 1 : -1)))
201 : (mbc1).bytes == (mbc2).bytes \
202 ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \
203 : (mbc1).bytes < (mbc2).bytes \
204 ? (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) > 0 ? 1 : -1) \
205 : (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc2).bytes) >= 0 ? 1 : -1)))
209 : (mbc1).bytes == (mbc2).bytes \
210 && memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) == 0)
214 : (mbc1).bytes == (mbc2).bytes \
215 && memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) == 0)
251 #define mb_putc(mbc, stream) fwrite ((mbc).ptr, 1, (mbc).bytes, (stream))
255 ((mbc)->ptr = (mbc)->buf, (mbc)->bytes = 1, (mbc)->wc_valid = 1, \
264 memcpy (&new_mbc->buf[0], &old_mbc->buf[0], old_mbc->bytes);
269 new_mbc->bytes = old_mbc->bytes;