HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
unicode_normalization.hpp
1// Copyright Take Vos 2020.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
7#include "../algorithm.hpp"
8#include <string>
9#include <string_view>
10
11
12namespace tt {
13
22std::u32string unicode_NFD(std::u32string_view text, bool ligatures = false, bool paragraph = false) noexcept;
23
33[[nodiscard]] std::u32string
34unicode_NFC(std::u32string_view text, bool ligatures = false, bool paragraph = false, bool composeCRLF = false)
35 noexcept;
36
43std::u32string unicode_NFKD(std::u32string_view text, bool paragraph = false) noexcept;
44
52std::u32string unicode_NFKC(std::u32string_view text, bool paragraph = false, bool composeCRLF = false) noexcept;
53
54}
STL namespace.