SigUtil  0.95
Utility modules for modern C++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
convert.hpp File Reference

文字コード変換 More...

Go to the source code of this file.

Namespaces

 sig
 

Macros

#define NOMINMAX
 
#define SIG_ENABLE_CODECVT   1
 <codecvt>を使用するか (GCC非対応) More...
 

Functions

auto sig::wstr_to_str (std::wstring const &src) -> std::string
 ワイド文字 -> マルチバイト文字 More...
 
template<class C , class R = typename impl::container_traits<C>::template rebind<std::string>, typename std::enable_if< std::is_same< typename impl::container_traits< C >::value_type, std::wstring >::value >::type *& = enabler>
auto sig::wstr_to_str (C const &src) -> R
 ワイド文字 -> マルチバイト文字 More...
 
auto sig::str_to_wstr (std::string const &src) -> std::wstring
 マルチバイト文字 -> ワイド文字 More...
 
template<class C , class R = typename impl::container_traits<C>::template rebind<std::wstring>, typename std::enable_if< std::is_same< typename impl::container_traits< C >::value_type, std::string >::value >::type *& = enabler>
auto sig::str_to_wstr (C const &src) -> R
 マルチバイト文字 -> ワイド文字 More...
 
auto sig::utf8_to_utf16 (std::string const &src) -> std::u16string
 UTF-8 -> UTF-16. More...
 
auto sig::utf16_to_utf8 (std::u16string const &src) -> std::string
 UTF-16 -> UTF-8. More...
 
auto sig::utf8_to_utf32 (std::string const &src) -> std::u32string
 UTF-8 -> UTF-32. More...
 
auto sig::utf32_to_utf8 (std::u32string const &src) -> std::string
 UTF-32 -> UTF-8. More...
 
auto sig::sjis_to_utf16 (std::string const &src) -> std::u16string
 ShiftJIS -> UTF-16. More...
 
auto sig::utf16_to_sjis (std::u16string const &src) -> std::string
 UTF-16 -> ShiftJIS. More...
 
auto sig::sjis_to_utf8 (std::string const &src) -> std::string
 ShiftJIS -> UTF-8. More...
 
auto sig::utf8_to_sjis (std::string const &src) -> std::string
 UTF-8 -> ShiftJIS. More...
 

Detailed Description

文字コード変換

Definition in file convert.hpp.

Macro Definition Documentation

#define NOMINMAX

Definition at line 15 of file convert.hpp.

#define SIG_ENABLE_CODECVT   1

<codecvt>を使用するか (GCC非対応)

Definition at line 27 of file convert.hpp.