Lines Matching refs:bytes
51 // indexed by number of bytes in the sequence.
68 // Return number of utf8 bytes required for the character.
73 // Figure out how many bytes the result will require.
111 static void utf32_to_utf8(uint8_t* dstP, char32_t srcChar, size_t bytes)
113 dstP += bytes;
114 switch (bytes)
119 case 1: *--dstP = (uint8_t)(srcChar | kFirstByteMark[bytes]);
183 size_t bytes = 0;
188 bytes += utf32_to_utf8_bytes(*p);
192 SharedBuffer* buf = SharedBuffer::alloc(bytes+1);
216 const size_t bytes = utf8_length_from_utf16(in, len);
218 SharedBuffer* buf = SharedBuffer::alloc(bytes+1);
223 utf16_to_utf8(in, len, str, bytes+1);
348 const size_t otherLen = other.bytes();
349 if (bytes() == 0) {
366 if (bytes() == 0) {
398 const size_t myLen = bytes();
815 // surrogate pairs are always 4 bytes.