A compiler to translate globalized texts into particular binary sequences.
More...
#include <compiler.hpp>
|
template<typename T >
requires (!std::same_as<std::decay_t<T>, compiler>) |
| compiler (T &&value) |
|
std::uint32_t | version () const |
| Gets the version of the compiler.
|
|
void | to_file (const abi::json &json, std::string_view path) const |
| Compiles a JSON value into a language file.
|
|
abi::vector< std::byte > | to_bytes (const abi::json &json) const |
| Compiles a JSON value into a byte array.
|
|
abi::string | to_base64 (const abi::json &json) const |
| Compiles a JSON value into a base64 string.
|
|
A compiler to translate globalized texts into particular binary sequences.
◆ to_base64()
abi::string essence::globalization::abstract::compiler::to_base64 |
( |
const abi::json & | json | ) |
const |
|
inlinenodiscard |
Compiles a JSON value into a base64 string.
- Parameters
-
- Returns
- The base64 string.
◆ to_bytes()
abi::vector< std::byte > essence::globalization::abstract::compiler::to_bytes |
( |
const abi::json & | json | ) |
const |
|
inlinenodiscard |
Compiles a JSON value into a byte array.
- Parameters
-
- Returns
- The byte array.
◆ to_file()
void essence::globalization::abstract::compiler::to_file |
( |
const abi::json & | json, |
|
|
std::string_view | path ) const |
|
inline |
Compiles a JSON value into a language file.
- Parameters
-
json | The JSON value. |
path | The path of the file. |
◆ version()
std::uint32_t essence::globalization::abstract::compiler::version |
( |
| ) |
const |
|
inlinenodiscard |
Gets the version of the compiler.
- Returns
- The version.
The documentation for this class was generated from the following file: