[Webkit-unassigned] [Bug 271809] New: Transform check for unpaired surrogates check in a function

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 27 16:20:11 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=271809

            Bug ID: 271809
           Summary: Transform check for unpaired surrogates check in a
                    function
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Text
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: vitor.roriz at apple.com
                CC: fantasai.bugs at inkedblade.net, vitor.roriz at apple.com

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;
    }
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240327/f8ea6736/attachment.htm>


More information about the webkit-unassigned mailing list