Skip to content

count length facets in code points in string and anyURI holders#79

Open
aizu-m wants to merge 1 commit into
apache:trunkfrom
aizu-m:string-length-facet-codepoints
Open

count length facets in code points in string and anyURI holders#79
aizu-m wants to merge 1 commit into
apache:trunkfrom
aizu-m:string-length-facet-codepoints

Conversation

@aizu-m

@aizu-m aizu-m commented Jul 16, 2026

Copy link
Copy Markdown

validateLexical in the string and anyURI holders measured the length, minLength and maxLength facets with String.length(), which counts UTF-16 code units, so a value holding a supplementary character was treated as two characters and validated against the wrong length; measuring with codePointCount fixes the count and leaves values without supplementary characters unchanged.

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.

1 participant