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

COLLATE: UTF8 collation of strings. #17

Open
prataprc opened this issue Jun 21, 2017 · 1 comment
Open

COLLATE: UTF8 collation of strings. #17

prataprc opened this issue Jun 21, 2017 · 1 comment
Labels

Comments

@prataprc
Copy link
Member

prataprc commented Jun 21, 2017

Collating strings is a complex affair. To describe some cases where gson's collation algorthim might fail are:

Refer: collation

@prataprc prataprc added the task label Jun 29, 2017
@prataprc prataprc changed the title UTF8 collation of strings. COLLATE: UTF8 collation of strings. Feb 8, 2018
prataprc added a commit that referenced this issue Apr 13, 2018
Implemented using "golang.org/x/text/collate" package. A new
configuration API is exposed to set a collator object, which is
responsible for compiling strings to sort-key.

Note that SetTextCollator() API is not stable.

Another caveat, AFAIK, in using golang.org/x/text/collate is that
we cannot convert sort-key back to string.
prataprc added a commit that referenced this issue Apr 13, 2018
prataprc added a commit that referenced this issue Apr 13, 2018
@prataprc
Copy link
Member Author

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

No branches or pull requests

1 participant