icu VS utfcpp

Compare icu vs utfcpp and see what are their differences.

utfcpp

UTF-8 with C++ in a Portable Way (by nemtrif)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
icu utfcpp
15 3
2,476 1,412
2.4% -
9.7 7.3
7 days ago 4 months ago
C++ C++
GNU General Public License v3.0 or later Boost Software License 1.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

icu

Posts with mentions or reviews of icu. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-21.

utfcpp

Posts with mentions or reviews of utfcpp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-17.
  • Current utf8 support options.
    1 project | /r/cpp_questions | 16 Feb 2023
    std::string is simply a string of bytes, so can already contain utf-8 encoded text. The only problem is when you want to interact with OS (Windows) API and other library APIs that don't expect utf-8 and when you need to count number of characters etc. For that you can look into existing libraries, e.g. the official Unicode ICU or whatever you can find that others have made, e.g.: https://github.com/nemtrif/utfcpp
  • How to cout a non-ASCII character within a non-ASCII string
    2 projects | /r/cpp_questions | 17 Mar 2022
    Suffice it to say, this is a mess. However, there are libraries that make this easier.
  • Maintain It with Zig
    16 projects | news.ycombinator.com | 8 Sep 2021
    > I've always tried as much as possible to treat strings as just opaque data and never look into them, which tends to work well, but in some domains you really need to look at and massage the characters/codepoints/grapheme clusters, and the lack of a first-citizen UTF-8-aware string type is, I think, a bit unfortunate in this day and age.

    You don't need a UTF-8 type for that, you just need routines that handle UTF-8 strings, like utfcpp (https://github.com/nemtrif/utfcpp).

What are some alternatives?

When comparing icu and utfcpp you can also consider the following projects:

harfbuzz - HarfBuzz text shaping engine

dstep - A tool for converting C and Objective-C headers to D modules

apertium-tha - Apertium linguistic data for Thai

arocc - A C compiler written in Zig.

manticoresearch - Easy to use open source fast database for search | Good alternative to Elasticsearch now | Drop-in replacement for E in the ELK soon

cc-rs - Rust library for build scripts to compile C/C++ code into a Rust library

MacOSX-SDKs - A collection of those pesky SDK folders: MacOSX10.1.5.sdk thru MacOSX11.3.sdk

zigstr - Zigstr is a UTF-8 string type for Zig programs.

binwalk - Firmware Analysis Tool

RIIR - why not Rewrite It In Rust

docker - Official docker for Manticore Search

mach - zig game engine & graphics toolkit