IceShard
1
A personal game engine project, with development focused on 2D/2.5D games.
Toggle main menu visibility
Loading...
Searching...
No Matches
i18n
public
ice
i18n_core_module.hxx
Go to the documentation of this file.
1
#pragma once
2
#include <
ice/i18n_core_api.hxx
>
3
#include <
ice/module.hxx
>
4
5
namespace
ice
6
{
7
8
struct
I18NString
;
9
10
struct
I18NCoreModule
:
public
ice::Module
<I18NCoreModule>
11
{
12
static
void
v1_i18n_api
(
ice::api::i18n::v1::I18NCoreModuleAPI
&
api
)
noexcept
;
13
14
static
bool
on_load
(
ice::Allocator
&
alloc
, ice::ModuleNegotiator
auto
const
& negotiator)
noexcept
;
15
static
void
on_unload
(
ice::Allocator
&
alloc
)
noexcept
;
16
17
static
void
init
(
const
Allocator
&
alloc
,
ice::ModuleNegotiatorBase
const
& negotiator)
noexcept
;
18
19
static
auto
resolve
(
ice::I18NReference
const
& reference)
noexcept
->
ice::String
;
20
static
auto
resolve
(
ice::I18NReference
const
& reference, fmt::format_args
const
& fmt_args)
noexcept
->
ice::String
;
21
static
void
resolve
(
ice::I18NString
& text,
ice::I18NReference
const
& reference)
noexcept
;
22
23
IS_WORKAROUND_MODULE_INITIALIZATION
(
I18NCoreModule
);
24
};
25
26
}
// namespace ice
ice::I18NReference
Definition
i18n_reference.hxx:9
ice::Module
Base class for modules that will automatically register them to be loaded by the module manager.
Definition
module.hxx:17
ice::ModuleNegotiatorBase
Helper type over the ModuleNegotiatorAPI type.
Definition
module_negotiator.hxx:51
i18n_core_api.hxx
module.hxx
ice::api
Definition
devui_module.hxx:16
ice
SPDX-License-Identifier: MIT.
Definition
array.hxx:12
ice::String
ice::BasicString< char > String
Definition
string.hxx:82
ice::alloc
auto alloc(ice::usize size) noexcept -> ice::AllocResult
ice::Allocator
ice::AllocatorBase< ice::build::is_debug||ice::build::is_develop > Allocator
Definition
mem_types.hxx:25
ice::I18NCoreModule
Definition
i18n_core_module.hxx:11
ice::I18NCoreModule::on_unload
static void on_unload(ice::Allocator &alloc) noexcept
ice::I18NCoreModule::IS_WORKAROUND_MODULE_INITIALIZATION
IS_WORKAROUND_MODULE_INITIALIZATION(I18NCoreModule)
ice::I18NCoreModule::resolve
static auto resolve(ice::I18NReference const &reference) noexcept -> ice::String
ice::I18NCoreModule::v1_i18n_api
static void v1_i18n_api(ice::api::i18n::v1::I18NCoreModuleAPI &api) noexcept
ice::I18NCoreModule::resolve
static auto resolve(ice::I18NReference const &reference, fmt::format_args const &fmt_args) noexcept -> ice::String
ice::I18NCoreModule::on_load
static bool on_load(ice::Allocator &alloc, ice::ModuleNegotiator auto const &negotiator) noexcept
ice::I18NCoreModule::resolve
static void resolve(ice::I18NString &text, ice::I18NReference const &reference) noexcept
ice::I18NCoreModule::init
static void init(const Allocator &alloc, ice::ModuleNegotiatorBase const &negotiator) noexcept
ice::I18NString
Definition
i18n_string.hxx:9
ice::api::i18n::v1::I18NCoreModuleAPI
Definition
i18n_core_api.hxx:11
Generated by
1.18.0