Skip to content

Conversation

khwilliamson
Copy link
Contributor

@khwilliamson khwilliamson commented Sep 8, 2025

This value is returnable from the called functions. And those functions have actually verified every byte that comprises the code point, so it is safer and better practice to use this value, instead of UTF8SKIP, which looks just at the first byte.

  • This set of changes does not require a perldelta entry.

@khwilliamson khwilliamson changed the title regcomp.c: Avoid a UTF8SKIP Avoid some UTF8SKIPs Sep 8, 2025
This value is returnable from the called function.  Use it instead of
re-deriving it
This value is returnable from the called function.  Use it instead of
re-deriving it
This value is returnable from the called functions.  Use it instead of
re-deriving it
If a character matches isSPACE, it must be an ASCII character, and hence
its length is 1.  No need check for and call UTF8SKIP on it.
This value is returnable from the called functions.  Use it instead of
re-deriving it
@khwilliamson khwilliamson added the Use merge commit Don't merge this p.r. from github It contains multiple related commits. Instructions in perlgit label Sep 11, 2025
@khwilliamson
Copy link
Contributor Author

Merged via 4312203 and 8cfa17a

@khwilliamson khwilliamson deleted the rm_utf8skips branch September 15, 2025 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Use merge commit Don't merge this p.r. from github It contains multiple related commits. Instructions in perlgit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants