IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
validate.hxx
Go to the documentation of this file.
1
3
4#pragma once
5
7{
8
10 static constexpr char const ascii_string[] = "hello";
11
13 static constexpr char const utf8_string[] = "こんにちは";
14
16 static constexpr char8_t const utf8_string_explicit[] = u8"こんにちは";
17
18 // We test the string size to ensure ASCII values have expected size.
19 static_assert(sizeof(ascii_string) == 6);
20
21 // We test the string size to ensure UTF8 values have expected extended size.
22 // Note: This assertion might be seen as error in some IDE's. But it will properly pass during compilation.
23 static_assert(sizeof(utf8_string) == 16);
24
25 // We test the string size to ensure UTF8 values have expected extended size.
26 static_assert(sizeof(utf8_string_explicit) == 16);
27
28} // ice::build::validation
Definition validate.hxx:7
static constexpr char const ascii_string[]
(ASCII) String value used to validate the use of '/utf-8' or '–utf8' compiler flags.
Definition validate.hxx:10
static constexpr char8_t const utf8_string_explicit[]
(UTF8) String value used to validate built-in utf8 support.
Definition validate.hxx:16
static constexpr char const utf8_string[]
(UTF8) String value used to validate the use of '/utf-8' or '–utf8' compiler flags.
Definition validate.hxx:13
std::uint8_t u8
Definition types.hxx:24