C++ Essence Library 0.1.0
A Utility Library for Modern C++ Programming
Loading...
Searching...
No Matches
essence::globalization::abstract::compiler Class Reference

A compiler to translate globalized texts into particular binary sequences. More...

#include <compiler.hpp>

Public Member Functions

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.
 

Detailed Description

A compiler to translate globalized texts into particular binary sequences.

Member Function Documentation

◆ 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
jsonThe JSON value.
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
jsonThe JSON value.
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
jsonThe JSON value.
pathThe 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: