Logo
Explore Help
Sign In
cottongin/crosspoint-reader
1
0
Fork 0
You've already forked crosspoint-reader
Code Issues Pull Requests Actions 1 Packages Projects Releases 4 Wiki Activity
crosspoint-reader/lib/Utf8/Utf8.h

9 lines
171 B
C
Raw Normal View History

Public release
2025-12-03 22:00:29 +11:00
#pragma once
#include <cstdint>
fix: render U+FFFD replacement character instead of ? (#366) The current behavior of rendering `?` for an unknown Unicode character can be hard to distinguish from a typo. Use the standard Unicode "replacement character" instead, that's what it's designed for: https://en.wikipedia.org/wiki/Specials_(Unicode_block) I'm making this PR as a draft because I'm not sure I did everything that was needed to change the character set covered by the fonts. Running that script is in its own commit. If this is proper, I'll rebase/squash into one commit and un-draft. Co-authored-by: Maeve Andrews <maeve@git.mail.maeveandrews.com>
2026-01-19 05:58:43 -06:00
#define REPLACEMENT_GLYPH 0xFFFD
gitflow-feature-stash: add-th-support
2026-01-22 00:07:29 +07:00
int utf8CodepointLen(const unsigned char c);
Public release
2025-12-03 22:00:29 +11:00
uint32_t utf8NextCodepoint(const unsigned char** string);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.4 Page: 36ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API