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 <string>
8#include <string_view>
9
10namespace tt {
11
20std::u32string unicode_NFD(std::u32string_view text, bool ligatures = false, bool paragraph = false) noexcept;
21
31[[nodiscard]] std::u32string
32unicode_NFC(std::u32string_view text, bool ligatures = false, bool paragraph = false, bool composeCRLF = false)
33 noexcept;
34
41std::u32string unicode_NFKD(std::u32string_view text, bool paragraph = false) noexcept;
42
50std::u32string unicode_NFKC(std::u32string_view text, bool paragraph = false, bool composeCRLF = false) noexcept;
51
52}
STL namespace.