bux API Reference 1.9.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 210 of file UnicodeCvt.cpp.
bux::C_UnicodeIn::C_UnicodeIn | ( | std::string_view | sv, |
T_Encoding | codepage = 0 ) |
Definition at line 217 of file UnicodeCvt.cpp.
|
delete |
|
inline |
Definition at line 59 of file UnicodeCvt.h.
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 222 of file UnicodeCvt.cpp.
|
noexcept |
Definition at line 250 of file UnicodeCvt.cpp.
|
inlinenoexcept |
Definition at line 68 of file UnicodeCvt.h.
Definition at line 277 of file UnicodeCvt.cpp.
References get().
Definition at line 257 of file UnicodeCvt.cpp.
References bux::C_RawQueue< N >::empty(), bux::C_Queue< T >::front(), lastError(), and bux::C_Queue< T >::pop().
Referenced by bux::C_MBCStr::escape(), get(), get(), and bux::C_LexTraits< C_LexUTF32 >::read().
Definition at line 298 of file UnicodeCvt.cpp.
References get().
|
inlinenoexcept |
Definition at line 67 of file UnicodeCvt.h.
References bux::C_RawQueue< N >::empty().
Referenced by get().