Searched refs:trail (Results 1 – 5 of 5) sorted by relevance
23 #define U16_GET_SUPPLEMENTARY(lead, trail) \ argument24 ((static_cast<int32_t>(lead) << 10UL) + static_cast<int32_t>(trail) - U16_SURROGATE_OFFSET)27 uint32_t UTF16Decode(uint16_t lead, uint16_t trail) in UTF16Decode() argument30 (trail >= DECODE_TRAIL_LOW && trail <= DECODE_TRAIL_HIGH)); in UTF16Decode()31 …uint32_t cp = (lead - DECODE_LEAD_LOW) * DECODE_FIRST_FACTOR + (trail - DECODE_TRAIL_LOW) + DECODE… in UTF16Decode()
75 uint32_t UTF16Decode(uint16_t lead, uint16_t trail);
97 uint16_t trail = 0xDF21; in HWTEST_F_L0() local99 EXPECT_TRUE(trail >= DECODE_TRAIL_LOW && trail <= DECODE_TRAIL_HIGH); in HWTEST_F_L0()100 uint32_t codePoint = utf_helper::UTF16Decode(lead, trail); in HWTEST_F_L0()103 trail = 0xDFCC; in HWTEST_F_L0()105 EXPECT_TRUE(trail >= DECODE_TRAIL_LOW && trail <= DECODE_TRAIL_HIGH); in HWTEST_F_L0()106 codePoint = utf_helper::UTF16Decode(lead, trail); in HWTEST_F_L0()
122 static uint16_t UTF16Decode(uint16_t lead, uint16_t trail);
204 uint32_t trail = 0; in ParseUnicodeEscape() local205 if (ParseHexEscape(UNICODE_HEX_VALUE, &trail) && U16_IS_TRAIL(trail)) { in ParseUnicodeEscape()206 … *value = U16_GET_SUPPLEMENTARY((*value), (trail)); // NOLINTNEXTLINE(hicpp-signed-bitwise) in ParseUnicodeEscape()