Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Java #8

Closed
jamesohortle opened this issue Nov 19, 2019 · 1 comment
Closed

Support Java #8

jamesohortle opened this issue Nov 19, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@jamesohortle
Copy link
Owner

Super easy to do, apparently. Match using regex below.

/\\u+[a-fA-F\d]{4}/
  • Java doesn't support Unicode escapes above the 16 bit range (i.e., escapes that require 5 or more hex digits), and uses surrogate pairs instead. Hence, we need only match exactly 4 hex digits.
  • Multiple us are supported. This is for code that has been ASCII-fied so that escape sequences in the original UTF-X encoded files can be indicated (they start with \uu; newly-escaped characters will be \u in the ASCII-converted source).
@jamesohortle jamesohortle added the enhancement New feature or request label Nov 19, 2019
@jamesohortle jamesohortle self-assigned this Nov 19, 2019
@jamesohortle
Copy link
Owner Author

189c411 etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant