IceShard
1
A personal game engine project, with development focused on 2D/2.5D games.
Toggle main menu visibility
Loading...
Searching...
No Matches
core
public
ice
build
validate.hxx
Go to the documentation of this file.
1
3
4
#pragma once
5
6
namespace
ice::build::validation
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
ice::build::validation
Definition
validate.hxx:7
ice::build::validation::ascii_string
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
ice::build::validation::utf8_string_explicit
static constexpr char8_t const utf8_string_explicit[]
(UTF8) String value used to validate built-in utf8 support.
Definition
validate.hxx:16
ice::build::validation::utf8_string
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
ice::u8
std::uint8_t u8
Definition
types.hxx:24
Generated by
1.18.0