This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
radiance-sycl/core/text/tokenizer_nfc.h
T
2026-10-04 12:02:41 +02:00

14 lines
522 B
C++

/* tokenizer_nfc.h -- NFC for the tokeniser's normaliser chain, applied only where it can change
* something. Byte for byte what unorm_utf8(text, false, true) returns; see tokenizer_nfc.cpp for
* why normalising the stretches around the codepoints that are not NFC boundaries is the same as
* normalising the whole text. */
#pragma once
#include <string>
namespace rad {
/* Normalise `text` in place. False when it was already NFC and has not been touched. */
bool tok_nfc(std::string& text);
} /* namespace rad */