Lines Matching refs:encoded
369 const std::string& encoded = util::Utf8ToModifiedUtf8(str); in EncodeString() local
371 utf8_to_utf16_length(reinterpret_cast<const uint8_t*>(encoded.data()), encoded.size()); in EncodeString()
376 if ((((size_t)encoded.size()) > EncodeLengthMax<char>()) || in EncodeString()
386 EncodedLengthUnits<char>(encoded.size()) + encoded.size() + 1; in EncodeString()
394 data = EncodeLength(data, encoded.size()); in EncodeString()
395 strncpy(data, encoded.data(), encoded.size()); in EncodeString()
398 const std::u16string encoded = util::Utf8ToUtf16(str); in EncodeString() local
399 const ssize_t utf16_length = encoded.size(); in EncodeString()
412 const size_t total_size = EncodedLengthUnits<char16_t>(utf16_length) + encoded.size() + 1; in EncodeString()
418 const size_t byte_length = encoded.size() * sizeof(char16_t); in EncodeString()
422 memcpy(data, encoded.data(), byte_length); in EncodeString()