Lines Matching defs:first
61 // 9. Let first be the code unit value at index position in s.
62 uint16_t first = EcmaStringAccessor(string.GetObject<EcmaString>()).Get<false>(position);
65 // 10. If first < 0xD800 or first > 0xDBFF or position+1 = len, let resultString be the string consisting of the
66 // single code unit first.
68 if (position + 1 == len || first < base::utf_helper::DECODE_LEAD_LOW ||
69 first > base::utf_helper::DECODE_LEAD_HIGH) {
70 if (EcmaStringAccessor::CanBeCompressed(&first, 1)) {
72 result.Update(singleCharTable->GetStringFromSingleCharTable(first));
74 std::vector<uint16_t> resultString {first, 0x0};
81 // first.
82 // c. Else, let resultString be the string consisting of the code unit first followed by the code unit second.
85 std::vector<uint16_t> resultString {first, 0x0};
88 std::vector<uint16_t> resultString {first, second, 0x0};