cpp-terminal 1.0.0
Small C++ library for writing multiplatform terminal applications
Loading...
Searching...
No Matches
conversion.hpp
Go to the documentation of this file.
1/*
2* cpp-terminal
3* C++ library for writing multi-platform terminal applications.
4*
5* SPDX-FileCopyrightText: 2019-2024 cpp-terminal
6*
7* SPDX-License-Identifier: MIT
8*/
9
10#pragma once
11
12#include <cstdint>
13#include <string>
14#include <vector>
15
16namespace Term
17{
18namespace Private
19{
20
21std::uint8_t utf8_decode_step(std::uint8_t state, std::uint8_t octet, std::uint32_t* cpp);
22
23std::u32string utf8_to_utf32(const std::string& str);
24
25bool is_valid_utf8_code_unit(const std::string& str);
26
27} // namespace Private
28
29} // namespace Term
std::u32string utf8_to_utf32(const std::string &str)
std::uint8_t utf8_decode_step(std::uint8_t state, std::uint8_t octet, std::uint32_t *cpp)
bool is_valid_utf8_code_unit(const std::string &str)
Definition args.cpp:13