emdashes begone (#10847)

This commit is contained in:
Tom
2026-07-02 01:01:27 +01:00
committed by GitHub
parent dee94e0758
commit 3becaf2d95
276 changed files with 1795 additions and 1793 deletions

View File

@@ -138,7 +138,7 @@ bool sanitizeUtf8(char *buf, size_t bufSize)
size_t seqLen;
uint32_t minCodepoint;
if (b <= 0x7F) {
// ASCII valid single byte
// ASCII - valid single byte
i++;
continue;
} else if ((b & 0xE0) == 0xC0) {
@@ -160,7 +160,7 @@ bool sanitizeUtf8(char *buf, size_t bufSize)
// Check that we have enough bytes remaining
if (i + seqLen > len) {
// Truncated sequence at end of string replace remaining bytes
// Truncated sequence at end of string - replace remaining bytes
for (size_t j = i; j < len; j++) {
buf[j] = '?';
}