CommonLib
Loading...
Searching...
No Matches
encoding.h File Reference
#include <type_traits>
#include "expr/encoding_expr.h"
#include "expr/string_expr.h"
#include "encoding_type.h"
#include "encoding.inl"

Go to the source code of this file.

Namespaces

namespace  hedgedev
namespace  hedgedev::csl
namespace  hedgedev::csl::ut
namespace  hedgedev::csl::ut::encoding

Functions

template<expr::basic_string T_result, expr::any_string T_str>
T_result hedgedev::csl::ut::encoding::convert (const T_str &in_str, encoding_type in_dst_encoding=expr::get_char_encoding_type< T_result >(), encoding_type in_src_encoding=expr::get_char_encoding_type< T_str >())
template<encoding_type dst_encoding, expr::any_string T_str, expr::any_string T_result = expr::encoded_string_t<dst_encoding>>
T_result hedgedev::csl::ut::encoding::convert (const T_str &in_str)
std::vector< uint8_t > hedgedev::csl::ut::encoding::get_bom (encoding_type in_encoding)
constexpr size_t hedgedev::csl::ut::encoding::get_bom_length (encoding_type in_encoding)
template<encoding_type encoding>
constexpr size_t hedgedev::csl::ut::encoding::get_bom_length ()
template<expr::any_string... T_args, typename T_result = expr::pi_string_t<T_args...>>
std::array< T_result, sizeof...(T_args)> hedgedev::csl::ut::encoding::precedent_convert (const T_args &... in_args)
template<expr::basic_string T_result, expr::any_string T_str>
bool hedgedev::csl::ut::encoding::try_convert (const T_str &in_str, T_result &out_result, encoding_type in_dst_encoding=expr::get_char_encoding_type< T_result >(), encoding_type in_src_encoding=expr::get_char_encoding_type< T_str >())
template<encoding_type dst_encoding, expr::any_string T_str, expr::any_string T_result = expr::encoded_string_t<dst_encoding>>
bool hedgedev::csl::ut::encoding::try_convert (const T_str &in_str, T_result &out_result)