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

Move VersionedProperty to its own file #647

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

eggrobin
Copy link
Member

Towards #432 and #502.

I want to do #432 (versioned property support in the JSPs) together with #502 (using unicodetools properties rather than ICU properties and properties badly reverse-engineered from ICU in the JSPs), otherwise we would lose the capability to have β properties.

That means splitting out the VersionedProperty class which is currently in the invariants test to someplace more reasonable for use in the JSPs.

I am trying to make this a « no functional change » PR, so while I am touching weird usages in UTS39-related generators that were reaching into the tests, I am not going to try to improve those.
The changes to VersionedProperty are minimal to get things to compile. They are quite hard to review because of the move, so I want to make any meaningful changes (and I will need to make changes for #432) in a separate PR; again I am trying very hard not to improve anything here. See https://goomics.net/119/.

private UnicodeProperty property;
private final transient PatternMatcher matcher = new UnicodeProperty.RegexMatcher();

private static final Set<String> TOOL_ONLY_PROPERTIES =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, just checked in changes to a PR so that the normalization code can use the IndexUnicodeProperties.

@eggrobin eggrobin merged commit bac16cf into unicode-org:main Jan 15, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants