Live data from Hacker News

Unicorn: C++ Unicode string library

github.com

1–10 of 32 posts

Re: Unicorn: C++ Unicode string library

#4
Looks like a nice project. I'm currently searching for a Unicode library and it appears to me that ICU is the de-facto standard here, which has the benefit of comming pre-installed on pretty much any Linux distribution. Any reason why I should use Unicorn instead? I couldn't find information on how it compares to ICU in the documentation (well, except for the most welcome usage of modern C++).

Re: Unicorn: C++ Unicode string library

#5
The unicode portion looks reasonable, but why is it necessary for it to include its own flags, file io, file management, and environment classes?

Why is it so many C++ libraries fall into this habit of trying to build one big framework. I'm perfectly happy with gflags -- a unicode library would be nice for my project, but now I won't consider this library.

Re: Unicorn: C++ Unicode string library

#6

Looks like a nice project. I'm currently searching for a Unicode library and it appears to me that ICU is the de-facto standard here, which has the benefit of comming pre-installed on pretty much any Linux distribution. Any reason why I should use Unicorn instead? I couldn't find information on how it compares to ICU in the documentation (well, except for the most welcome usage of modern C++).

It looks like Unicorn can apply operations (such as regexes) to text that is natively in UTF-8, giving it a distinct advantage over ICU, which was written back when UTF-16 seemed like a good idea and has to convert everything into UTF-16.

Re: Unicorn: C++ Unicode string library

#8

The unicode portion looks reasonable, but why is it necessary for it to include its own flags, file io, file management, and environment classes? Why is it so many C++ libraries fall into this habit of trying to build one big framework. I'm perfectly happy with gflags -- a unicode library would be nice for my project, but now I won't consider this library.

Because the whole point is to handle anything that needs Unicode support. A library that only manipulated Unicode strings would be incomplete if you still couldn't use Unicode in command line options, file names, etc.

Re: Unicorn: C++ Unicode string library

#9
post #2

Your github pages breaks the back button.

No idea what you mean, sorry. I'm just using Github's automatically generated web pages, so if there's a problem there it's probably a Github issue.

Probably referring to the Documentation link you provide on the GitHub page, and it breaks back button for me too.

Re: Unicorn: C++ Unicode string library

#10
post #9

Earlier quoted context omitted.

No idea what you mean, sorry. I'm just using Github's automatically generated web pages, so if there's a problem there it's probably a Github issue.

Probably referring to the Documentation link you provide on the GitHub page, and it breaks back button for me too.

I think it's the htmlpreview: the back throws you into a redirection to the current page.
Post reply on HN