# sheredom/utf8.h

📚 single header utf8 string functions for C and C++

Repository: https://github.com/sheredom/utf8.h
Canonical: https://ross.abutalabs.com/products/utf8h
Language: C++
License: Unlicense
License Family: permissive
Topics: utf8, unicode, c, cpp
Last push: 2026-08-26T13:54:06+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 53, longevity 100
- inputs: {"age_days": 4075, "days_push": 7, "days_rel": 103, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1979, forks 141 (observed 2026-08-28T04:06:01.528541+00:00)

## What it is
A single-header C and C++ library providing UTF-8 string manipulation functions mirroring the standard string.h API. It offers utf8-prefixed equivalents of str* functions plus codepoint handling and validation utilities.

## Use cases
- handle utf8 strings in c or c++
- count codepoints in a utf8 string
- validate utf8 string data
- portable string functions across linux macos windows
- iterate over unicode codepoints in a string
- drop-in utf8 alternative to string.h

## When to choose
- you need lightweight UTF-8 string handling in C/C++ without dependencies
- you want an API familiar from string.h
- you need a single-header, easy-to-vendor solution

## When to avoid
- you need full Unicode normalization, case folding, or locale-aware collation
- you need wide-character or UTF-16/UTF-32 support
- you need case-insensitive functions marked incomplete

## Facets
- artifact type: library
- maturity: stable
- function: parser, internationalization, developer-tools
- domain: programming-languages, developer-tools
- platform: windows, cpp, c, cross-platform
- tags: header-only, utf8, string-processing, unicode, single-header, localization, linux, macos

## Member repositories
- sheredom/utf8.h (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:01.528541+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:04:43.225519+00:00, confidence not recorded.
  - readme: https://github.com/sheredom/utf8.h (fetched 2026-08-28T04:06:01.528541+00:00, sha bfbca658eec1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
