Nui
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Nui::FixedString< Size > Class Template Reference

Utilitarian class to store and modify strings in compile time. More...

#include <fixed_string.hpp>

Public Member Functions

constexpr FixedString ()
 
constexpr FixedString (char const *s)
 
constexpr FixedString (char const *s, FixToLowerFlag)
 
constexpr operator char const * () const
 
template<unsigned OtherSize>
constexpr int compare (FixedString< OtherSize > const &other) const
 glibc strcmp implementation. More...
 

Public Attributes

char m_buffer [Size+1] {}
 

Static Public Attributes

constexpr static auto m_size = Size
 

Detailed Description

template<unsigned Size>
class Nui::FixedString< Size >

Utilitarian class to store and modify strings in compile time.

Template Parameters
Size

Constructor & Destructor Documentation

◆ FixedString() [1/3]

template<unsigned Size>
constexpr Nui::FixedString< Size >::FixedString ( )
inlineconstexpr

◆ FixedString() [2/3]

template<unsigned Size>
constexpr Nui::FixedString< Size >::FixedString ( char const *  s)
inlineconstexpr

◆ FixedString() [3/3]

template<unsigned Size>
constexpr Nui::FixedString< Size >::FixedString ( char const *  s,
FixToLowerFlag   
)
inlineconstexpr

Member Function Documentation

◆ compare()

template<unsigned Size>
template<unsigned OtherSize>
constexpr int Nui::FixedString< Size >::compare ( FixedString< OtherSize > const &  other) const
inlineconstexpr

glibc strcmp implementation.

◆ operator char const *()

template<unsigned Size>
constexpr Nui::FixedString< Size >::operator char const * ( ) const
inlineconstexpr

Member Data Documentation

◆ m_buffer

template<unsigned Size>
char Nui::FixedString< Size >::m_buffer[Size+1] {}

◆ m_size

template<unsigned Size>
constexpr static auto Nui::FixedString< Size >::m_size = Size
staticconstexpr

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