#include <xmol/utils/ShortAsciiString.h>
template<int MAX_LENGTH, bool ALLOW_CONSTRUCT_TRUNCATION = false, typename = void>
ShortAsciiString class
Contents
Public types
- using uint_type = typename std::conditional<MAX_LENGTH<=4, typename std::conditional<MAX_LENGTH<=2, typename std::conditional<MAX_LENGTH<=1, uint8_t, uint16_t>::type, uint32_t>::type, uint64_t>::type
Public static variables
- static const int max_length
Constructors, destructors, conversion operators
- ShortAsciiString()
- ShortAsciiString(const std::string& aName) explicit
-
template<int N>ShortAsciiString(const char(&aName)[N]) explicit constexpr noexcept
- ShortAsciiString(const char* aName, int exact_length) explicit
- ShortAsciiString(const ShortAsciiString& other)
- ShortAsciiString(ShortAsciiString&& other) noexcept
- operator std::string() const explicit
Public functions
- auto operator[](const uint8_t& i) const -> char constexpr noexcept
- auto operator=(const ShortAsciiString& other) -> ShortAsciiString&
- auto operator=(ShortAsciiString&& other) -> ShortAsciiString& noexcept
- auto operator=(const std::string& aName) -> ShortAsciiString&
- auto operator=(const char* aName) -> ShortAsciiString&
- auto operator==(const ShortAsciiString& other) const -> bool
- auto operator!=(const ShortAsciiString& other) const -> bool
- auto operator==(const char* other) const -> bool
- auto operator!=(const char* other) const -> bool
- auto operator<(const ShortAsciiString& other) const -> bool
- auto operator>(const ShortAsciiString& other) const -> bool
- auto str() const -> std::string
- auto value() const -> uint_type constexpr