acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
aaa_character.h
1// Created by camilo from ch.h on 2022-06-06 22:20 <3ThomasBorregaardSorensen!!
2// Changed to character by camilo on 2022-10-07 16:00 <3ThomasBorregaardSorensen!!
3#pragma once
4
5
6#include "_c_unicode.h"
7
8
9class CLASS_DECL_ACME character
10{
11public:
12
13
14 ::wd32_character m_wd32char;
15
16
17 character(::ansi_character ::ansi_character) { m_wd32char = (::wd32_character) static_cast <::u8> (::ansi_character); }
18 character(::wd16_character ::wd16_character) { wd16_to_wd32(&m_wd32char, &::wd16_character, 1); }
19 character(::wd32_character ::wd32_character) { m_wd32char = ::wd32_character; }
20 character(const ::scoped_string & scopedstrUtf8) { m_wd32char= parse_utf8(scopedstrUtf8); }
21
22
23 static ::wd32_character parse_utf8(const ::scoped_string & scopedstrUtf8);
24
25
26};
27
28
29