• Home
  • Raw
  • Download

Lines Matching refs:byte_length

168 void UnicodeText::Repr::append(const char* bytes, int byte_length) {  in append()  argument
169 reserve(size_ + byte_length); in append()
170 memcpy(data_ + size_, bytes, byte_length); in append()
171 size_ += byte_length; in append()
230 UnicodeText& UnicodeText::CopyUTF8(const char* buffer, int byte_length) { in CopyUTF8() argument
231 repr_.Copy(buffer, byte_length); in CopyUTF8()
232 if (!UniLib:: IsInterchangeValid(buffer, byte_length)) { in CopyUTF8()
234 repr_.size_ = ConvertToInterchangeValid(repr_.data_, byte_length); in CopyUTF8()
240 int byte_length) { in UnsafeCopyUTF8() argument
241 repr_.Copy(buffer, byte_length); in UnsafeCopyUTF8()
248 int byte_length, in TakeOwnershipOfUTF8() argument
250 repr_.TakeOwnershipOf(buffer, byte_length, byte_capacity); in TakeOwnershipOfUTF8()
251 if (!UniLib:: IsInterchangeValid(buffer, byte_length)) { in TakeOwnershipOfUTF8()
253 repr_.size_ = ConvertToInterchangeValid(repr_.data_, byte_length); in TakeOwnershipOfUTF8()
259 int byte_length, in UnsafeTakeOwnershipOfUTF8() argument
261 repr_.TakeOwnershipOf(buffer, byte_length, byte_capacity); in UnsafeTakeOwnershipOfUTF8()
267 UnicodeText& UnicodeText::PointToUTF8(const char* buffer, int byte_length) { in PointToUTF8() argument
268 if (UniLib:: IsInterchangeValid(buffer, byte_length)) { in PointToUTF8()
269 repr_.PointTo(buffer, byte_length); in PointToUTF8()
272 repr_.Copy(buffer, byte_length); in PointToUTF8()
273 repr_.size_ = ConvertToInterchangeValid(repr_.data_, byte_length); in PointToUTF8()
279 int byte_length) { in UnsafePointToUTF8() argument
280 repr_.PointTo(buffer, byte_length); in UnsafePointToUTF8()