mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
upd: alignment of format
This commit is contained in:
parent
c39b0fc18c
commit
36b380f80f
@ -75,12 +75,12 @@ inline std::string to_string(std::string const &a, span<char const> fstr) noexce
|
|||||||
/// @brief Character to string conversion.
|
/// @brief Character to string conversion.
|
||||||
/// @return an empty string if the conversion fails
|
/// @return an empty string if the conversion fails
|
||||||
inline std::string to_string(char a) noexcept { return {a}; }
|
inline std::string to_string(char a) noexcept { return {a}; }
|
||||||
|
#if defined(LIBIMP_CPP_20)
|
||||||
|
inline std::string to_string(char8_t a) noexcept { return to_string((char)a); }
|
||||||
|
#endif // defined(LIBIMP_CPP_20)
|
||||||
LIBIMP_EXPORT std::string to_string(wchar_t a) noexcept;
|
LIBIMP_EXPORT std::string to_string(wchar_t a) noexcept;
|
||||||
LIBIMP_EXPORT std::string to_string(char16_t a) noexcept;
|
LIBIMP_EXPORT std::string to_string(char16_t a) noexcept;
|
||||||
LIBIMP_EXPORT std::string to_string(char32_t a) noexcept;
|
LIBIMP_EXPORT std::string to_string(char32_t a) noexcept;
|
||||||
#if defined(LIBIMP_CPP_20)
|
|
||||||
LIBIMP_EXPORT std::string to_string(char8_t a) noexcept { return to_string((char)a); }
|
|
||||||
#endif // defined(LIBIMP_CPP_20)
|
|
||||||
|
|
||||||
/// @brief Conversion of numeric types to strings.
|
/// @brief Conversion of numeric types to strings.
|
||||||
/// @return an empty string if the conversion fails
|
/// @return an empty string if the conversion fails
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user