MiKTeX 23.10-next
A scalable TeX distribution
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MiKTeX::Util::CharBuffer< CharType, BUFSIZE > Class Template Reference

Instances of this class store characters. More...

#include <miktex/Util/CharBuffer.h>

Inheritance diagram for MiKTeX::Util::CharBuffer< CharType, BUFSIZE >:
Inheritance graph
[legend]

Public Member Functions

 CharBuffer (const CharBuffer &other)
 
 CharBuffer (CharBuffer &&other) noexcept
 
CharBufferoperator= (const CharBuffer &other)
 
CharBufferoperator= (CharBuffer &&other) noexcept
 
 CharBuffer (const char *lpsz)
 
 CharBuffer (const char16_t *lpsz)
 
 CharBuffer (const wchar_t *lpsz)
 
 CharBuffer (const std::basic_string< char > &other)
 
 CharBuffer (const std::basic_string< char16_t > &other)
 
 CharBuffer (const std::basic_string< wchar_t > &other)
 
 CharBuffer (std::size_t n)
 
void Set (const CharBuffer &other)
 
template<typename OtherCharType >
void Set (const OtherCharType *lpsz)
 
template<typename OtherCharType >
void Set (const std::basic_string< OtherCharType > &s)
 
void Append (const std::basic_string< CharType > &s)
 
void Append (const CharType *lpsz)
 
void Append (const CharType *s, std::size_t len)
 
void Append (CharType ch)
 
void Clear ()
 
bool Empty () const
 
void Reset ()
 
void Reserve (std::size_t newSize)
 
std::basic_string< CharType > ToString () const
 
const CharType * GetData () const
 
CharType * GetData ()
 
std::size_t GetLength () const
 
std::size_t GetCapacity () const
 
const CharType & operator[] (std::size_t idx) const
 
CharType & operator[] (std::size_t idx)
 
template<typename OtherCharType >
CharBufferoperator= (const OtherCharType *lpsz)
 
template<typename OtherCharType >
CharBufferoperator= (const std::basic_string< OtherCharType > &s)
 
CharBufferoperator+= (const CharType *lpsz)
 
CharBufferoperator+= (const std::basic_string< CharType > &s)
 
CharBufferoperator+= (CharType ch)
 

Detailed Description

template<typename CharType, int BUFSIZE = 512>
class MiKTeX::Util::CharBuffer< CharType, BUFSIZE >

Instances of this class store characters.

Member Function Documentation

◆ Empty()

template<typename CharType , int BUFSIZE = 512>
bool MiKTeX::Util::CharBuffer< CharType, BUFSIZE >::Empty ( ) const
inline

Tests if the character sequence is empty.

Returns
Returns true if the character sequence is empty.

◆ ToString()

template<typename CharType , int BUFSIZE = 512>
std::basic_string< CharType > MiKTeX::Util::CharBuffer< CharType, BUFSIZE >::ToString ( ) const
inline

Converts this CharBuffer object into a string object.

Returns
Returns a string object.

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