Bug 271809 - Transform check for unpaired surrogates check in a function
Summary: Transform check for unpaired surrogates check in a function
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-03-27 16:20 PDT by Vitor Roriz
Modified: 2024-03-27 16:20 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitor Roriz 2024-03-27 16:20:11 PDT
At ComplexTextController, we have logic that checks for unpaired surrogated pair. We should encapsulate that check in a function that explicitly says what we are checking for:

```
   U16_NEXT(buffer, i, bufferLength, baseCharacter);
    if (U_IS_SURROGATE(baseCharacter)) {
        markCount = 0;
        currentIndex += i;
        return false;
    }
```
Comment 1 Radar WebKit Bug Importer 2024-03-27 16:20:30 PDT
<rdar://problem/125515961>