MiKTeX 26.5-next
A scalable TeX distribution
Loading...
Searching...
No Matches
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 >:

Public Member Functions

 CharBuffer (const CharBuffer &other)
 CharBuffer (CharBuffer &&other) noexcept
CharBuffer & operator= (const CharBuffer &other)
CharBuffer & operator= (CharBuffer &&other) noexcept
 CharBuffer (const char *s)
 CharBuffer (const char16_t *s)
 CharBuffer (const wchar_t *s)
 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 *s)
template<typename OtherCharType>
void Set (const std::basic_string< OtherCharType > &s)
void Append (const std::basic_string< CharType > &s)
void Append (const CharType *s)
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>
CharBuffer & operator= (const OtherCharType *s)
template<typename OtherCharType>
CharBuffer & operator= (const std::basic_string< OtherCharType > &s)
CharBuffer & operator+= (const CharType *s)
CharBuffer & operator+= (const std::basic_string< CharType > &s)
CharBuffer & operator+= (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: