Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

StringUtils.wrapText will not split surrogate pair.#103

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@mikesamuel
Copy link
Contributor

Previously,

StringUtils.wrapText(".\uD800\uDC00.", 2)//                           ^ index 2 points here

would insert a<br/> between two paired surrogates.

Now, it shifts the insertion point to a whole code-point boundary.

Previously,    StringUtils.wrapText(".\uD800\uDC00.", 2)    //                           ^ index 2 points herewould insert a `<br/>` between two paired surrogates.Now, it shifts the insertion point to a whole code-point boundary.
@mikesamuel
Copy link
ContributorAuthor

With this patch,mvn test runs clean on

openjdk version "11.0.8" 2020-07-14

The java.lang.Character APIs used are@since 1.5.

@wumpzwumpz merged commit5338313 intojava-diff-utils:masterNov 22, 2020
@mikesamuelmikesamuel deleted the string-utils-wrap-surrogates branchNovember 23, 2020 23:43
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@mikesamuel@wumpz

[8]ページ先頭

©2009-2025 Movatter.jp