Home
last modified time | relevance | path

Searched refs:srcChar (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/commonlibrary/c_utils/base/src/
H A Dunicode_ex.cpp76 void Utf32CodePointToUtf8(uint8_t* dstP, char32_t srcChar, size_t bytes) in Utf32CodePointToUtf8() argument
81 srcChar >>= UTF8_OFFSET; in Utf32CodePointToUtf8()
86 srcChar >>= UTF8_OFFSET; in Utf32CodePointToUtf8()
91 srcChar >>= UTF8_OFFSET; in Utf32CodePointToUtf8()
95 *--dstP = static_cast<uint8_t>(srcChar | UTF8_FIRST_BYTE_MARK[bytes]); in Utf32CodePointToUtf8()
99 size_t Utf32CodePointUtf8Length(char32_t srcChar) in Utf32CodePointUtf8Length() argument
101 if (srcChar < ONE_BYTE_UTF8) { in Utf32CodePointUtf8Length()
103 } else if (srcChar < TWO_BYTES_UTF8) { in Utf32CodePointUtf8Length()
105 } else if (srcChar < THREE_BYTES_UTF8) { in Utf32CodePointUtf8Length()
106 if ((srcChar < UNICODE_RESERVED_START) || (srcChar > UNICODE_RESERVED_END)) { in Utf32CodePointUtf8Length()
[all …]
/ohos5.0/base/telephony/sms_mms/test/gtest/
H A Dmms_gtest.cpp914 char srcChar = MIN_SHORT_OCTET + 1; variable
915 mmsDecodeBuffer.pduBuffer_[mmsDecodeBuffer.curPosition_] = srcChar;
917 mmsDecodeBuffer.pduBuffer_[mmsDecodeBuffer.curPosition_] = srcChar + 1;
923 mmsDecodeBuffer.pduBuffer_[mmsDecodeBuffer.curPosition_] = srcChar;
925 mmsDecodeBuffer.pduBuffer_[mmsDecodeBuffer.curPosition_] = srcChar + 1;