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.
Loading...
Searching...
No Matches
bux::C_MBCStr Class Reference

#include <UnicodeCvt.h>

Public Types

typedef void(*) F_PushCh(std::string &dst, char c)
 

Public Member Functions

 C_MBCStr (T_Encoding codepage=0) noexcept
 
 C_MBCStr (const C_MBCStr &)=delete
 
C_MBCStroperator= (const C_MBCStr &)=delete
 
 C_MBCStr (C_MBCStr &&other) noexcept
 
void operator= (C_MBCStr &&other) noexcept
 
 C_MBCStr (std::string_view s, T_Encoding codepage=0) noexcept
 
void operator+= (std::string_view s)
 
template<typename T >
 C_MBCStr (const T *ps, size_t size=0, T_Encoding codepage=0)
 
template<typename T >
void operator+= (const T *ps)
 
template<typename T >
 C_MBCStr (std::basic_string_view< T > s, T_Encoding codepage=0)
 
template<typename T >
void operator+= (const std::basic_string< T > &s)
 
void append (const char *src, size_t srcBytes)
 
template<typename T >
void append (const T *ps, size_t size)
 
bool empty () const noexcept
 
const std::string & escape (F_PushCh pushCh) const
 
const std::string & escJSON () const
 
const std::string & strU8 () const
 

Detailed Description

Definition at line 120 of file UnicodeCvt.h.

Member Typedef Documentation

◆ F_PushCh

void(*) bux::C_MBCStr::F_PushCh(std::string &dst, char c)

Definition at line 125 of file UnicodeCvt.h.

Constructor & Destructor Documentation

◆ C_MBCStr() [1/6]

bux::C_MBCStr::C_MBCStr ( T_Encoding codepage = 0)
inlinenoexcept

Definition at line 128 of file UnicodeCvt.h.

◆ C_MBCStr() [2/6]

bux::C_MBCStr::C_MBCStr ( const C_MBCStr & )
delete

◆ C_MBCStr() [3/6]

bux::C_MBCStr::C_MBCStr ( C_MBCStr && other)
noexcept

Definition at line 659 of file UnicodeCvt.cpp.

◆ C_MBCStr() [4/6]

bux::C_MBCStr::C_MBCStr ( std::string_view s,
T_Encoding codepage = 0 )
inlinenoexcept

Definition at line 135 of file UnicodeCvt.h.

◆ C_MBCStr() [5/6]

template<typename T >
bux::C_MBCStr::C_MBCStr ( const T * ps,
size_t size = 0,
T_Encoding codepage = 0 )
inline

Definition at line 138 of file UnicodeCvt.h.

References bux::append().

◆ C_MBCStr() [6/6]

template<typename T >
bux::C_MBCStr::C_MBCStr ( std::basic_string_view< T > s,
T_Encoding codepage = 0 )
inline

Definition at line 143 of file UnicodeCvt.h.

References bux::append().

Member Function Documentation

◆ append() [1/2]

void bux::C_MBCStr::append ( const char * src,
size_t srcBytes )

Definition at line 688 of file UnicodeCvt.cpp.

◆ append() [2/2]

template<typename T >
void bux::C_MBCStr::append ( const T * ps,
size_t size )
inline

Definition at line 150 of file UnicodeCvt.h.

References bux::append().

◆ empty()

bool bux::C_MBCStr::empty ( ) const
noexcept

Definition at line 731 of file UnicodeCvt.cpp.

◆ escape()

const std::string & bux::C_MBCStr::escape ( F_PushCh pushCh) const

Definition at line 736 of file UnicodeCvt.cpp.

References bux::C_UnicodeIn::get().

◆ escJSON()

const std::string & bux::C_MBCStr::escJSON ( ) const

Definition at line 755 of file UnicodeCvt.cpp.

◆ operator+=() [1/3]

template<typename T >
void bux::C_MBCStr::operator+= ( const std::basic_string< T > & s)
inline

Definition at line 145 of file UnicodeCvt.h.

References bux::append().

◆ operator+=() [2/3]

template<typename T >
void bux::C_MBCStr::operator+= ( const T * ps)
inline

Definition at line 140 of file UnicodeCvt.h.

References bux::append().

◆ operator+=() [3/3]

void bux::C_MBCStr::operator+= ( std::string_view s)

Definition at line 675 of file UnicodeCvt.cpp.

◆ operator=() [1/2]

void bux::C_MBCStr::operator= ( C_MBCStr && other)
noexcept

Definition at line 667 of file UnicodeCvt.cpp.

◆ operator=() [2/2]

C_MBCStr & bux::C_MBCStr::operator= ( const C_MBCStr & )
delete

◆ strU8()

const std::string & bux::C_MBCStr::strU8 ( ) const

Definition at line 780 of file UnicodeCvt.cpp.

Referenced by bux::to_utf8(), bux::to_utf8(), and bux::to_utf8().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: