bux API Reference 1.11.0
Static library of whatever are seen required in general purpose but not directly supported from Modern C++. Or whatever reusable originated from my side projects.
|
#include <UnicodeCvt.h>
Public Member Functions | |
C_UnicodeIn (FH_ReadChar &&readc, T_Encoding codepage=0) | |
C_UnicodeIn (std::string_view sv, T_Encoding codepage=0) | |
C_UnicodeIn (std::string &&s, T_Encoding codepage=0)=delete | |
C_UnicodeIn (const char *s, T_Encoding codepage=0) | |
C_UnicodeIn (std::istream &in, T_Encoding codepage=0) | |
~C_UnicodeIn () noexcept | |
int | get (T_Utf32 &c) |
int | get (T_Utf16 *dst) |
int | get (T_Utf8 *dst) |
int | lastError () const noexcept |
T_Encoding | encoding () const noexcept |
Definition at line 51 of file UnicodeCvt.h.
bux::C_UnicodeIn::C_UnicodeIn | ( | FH_ReadChar && | readc, |
T_Encoding | codepage = 0 ) |
Definition at line 160 of file UnicodeCvt.cpp.
Referenced by C_UnicodeIn(), C_UnicodeIn(), bux::to_utf8(), bux::to_utf8(), and bux::to_utf8().
bux::C_UnicodeIn::C_UnicodeIn | ( | std::string_view | sv, |
T_Encoding | codepage = 0 ) |
Definition at line 167 of file UnicodeCvt.cpp.
References C_UnicodeIn().
|
delete |
|
inline |
Definition at line 59 of file UnicodeCvt.h.
References C_UnicodeIn().
bux::C_UnicodeIn::C_UnicodeIn | ( | std::istream & | in, |
T_Encoding | codepage = 0 ) |
in | Reference of input stream |
codepage | Encoding type of input stream. Value 0 to guess the finest. |
HEADSUP: When codepage is 0 and in reference to a stream instance of type std::ifstream
, the instance should be opened in binary mode with std::ios::binary
for the case that the encoding is actually UTf-16(LE or BE) and input stream contains '\x1a' bytes (ascii EOF), e.g. as part of '\uff1a'. Or the input stream might hit EOF earlier than it should.
Definition at line 172 of file UnicodeCvt.cpp.
|
noexcept |
Definition at line 200 of file UnicodeCvt.cpp.
|
inlinenoexcept |
Definition at line 68 of file UnicodeCvt.h.
Definition at line 227 of file UnicodeCvt.cpp.
References get().
Definition at line 207 of file UnicodeCvt.cpp.
References lastError().
Referenced by get(), get(), and bux::C_LexTraits< C_LexUTF32 >::read().
Definition at line 248 of file UnicodeCvt.cpp.
References get().
|
inlinenoexcept |
Definition at line 67 of file UnicodeCvt.h.
References lastError().
Referenced by get(), and lastError().