IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
ice::I18NString Struct Reference

#include <ice/i18n_string.hxx>

Inheritance diagram for ice::I18NString:
ice::string::ReadOnlyOperations

Public Types

using CharType = char
using ValueType = CharType const
using ConstIterator = ValueType*
using ConstReverseIterator = std::reverse_iterator<ValueType*>
using Iterator = ConstIterator
using ReverseIterator = ConstReverseIterator
using SizeType = ice::ncount
using StringType = ice::String

Public Member Functions

 I18NString (ice::String text) noexcept
 I18NString (ice::I18NReference reference) noexcept
bool resolve () noexcept
auto data () const noexcept -> ValueType *
auto size () const noexcept -> SizeType
 operator ice::String () const noexcept
Public Member Functions inherited from ice::string::ReadOnlyOperations
template<StringType Self>
constexpr bool is_empty (this Self const &self) noexcept
template<StringType Self>
constexpr bool not_empty (this Self const &self) noexcept
template<StringType Self>
constexpr auto front (this Self const &self) noexcept -> typename Self::CharType
template<StringType Self>
constexpr auto back (this Self const &self) noexcept -> typename Self::CharType
template<StringType Self>
constexpr auto substr (this Self const &self, ice::nindex pos, ice::ncount len={}) noexcept -> typename Self::StringType
template<StringType Self>
constexpr auto substr (this Self const &self, ice::ref32 ref) noexcept -> typename Self::StringType
template<StringType Self>
constexpr auto starts_with (this Self const &self, StringType auto prefix) noexcept
template<StringType Self>
constexpr auto find_first_of (this Self const &self, typename Self::CharType character_value, ice::nindex start=0) noexcept -> ice::nindex
template<StringType Self>
constexpr auto find_first_of (this Self const &self, typename Self::StringType character_values, ice::nindex start=0) noexcept -> ice::nindex
template<StringType Self>
constexpr auto find_last_of (this Self const &self, typename Self::CharType character_value, ice::nindex start=0) noexcept -> ice::nindex
template<StringType Self>
constexpr auto find_last_of (this Self const &self, typename Self::StringType character_values, ice::nindex start=0) noexcept -> ice::nindex
template<StringType Self>
constexpr auto find_first_not_of (this Self const &self, typename Self::CharType character_value, ice::nindex start_idx=0) noexcept -> ice::nindex
template<StringType Self>
constexpr auto find_first_not_of (this Self const &self, typename Self::StringType character_values, ice::nindex start_idx=0) noexcept -> ice::nindex
template<StringType Self>
constexpr auto find_last_not_of (this Self const &self, typename Self::CharType character_value, ice::nindex start_idx=0) noexcept -> ice::nindex
template<StringType Self>
constexpr auto find_last_not_of (this Self const &self, typename Self::StringType character_values, ice::nindex start_idx=0) noexcept -> ice::nindex
template<StringType Self>
constexpr auto cbegin (this Self const &self) noexcept -> typename Self::ConstIterator
template<StringType Self>
constexpr auto cend (this Self const &self) noexcept -> typename Self::ConstIterator
template<StringType Self>
constexpr auto crbegin (this Self const &self) noexcept -> typename Self::ConstReverseIterator
template<StringType Self>
constexpr auto crend (this Self const &self) noexcept -> typename Self::ConstReverseIterator
template<StringType Self>
constexpr auto begin (this Self const &self) noexcept -> typename Self::ConstIterator
template<StringType Self>
constexpr auto end (this Self const &self) noexcept -> typename Self::ConstIterator
template<StringType Self>
constexpr auto rbegin (this Self const &self) noexcept -> typename Self::ConstReverseIterator
template<StringType Self>
constexpr auto rend (this Self const &self) noexcept -> typename Self::ConstReverseIterator
template<StringType Self>
constexpr auto operator[] (this Self const &self, ice::nindex index) noexcept -> typename Self::ValueType
template<StringType Self>
constexpr bool operator== (this Self const &self, typename Self::StringType const &other) noexcept
template<StringType Self>
constexpr auto meminfo (this Self const &self) noexcept -> ice::meminfo

Public Attributes

void const * _data = nullptr
ice::i32 _data_offset = 0
ice::i32 _size_offset = 0

Member Typedef Documentation

◆ CharType

◆ ConstIterator

◆ ConstReverseIterator

using ice::I18NString::ConstReverseIterator = std::reverse_iterator<ValueType*>

◆ Iterator

◆ ReverseIterator

◆ SizeType

◆ StringType

◆ ValueType

Constructor & Destructor Documentation

◆ I18NString() [1/2]

ice::I18NString::I18NString ( ice::String text)
noexcept

◆ I18NString() [2/2]

ice::I18NString::I18NString ( ice::I18NReference reference)
noexcept

Member Function Documentation

◆ data()

auto ice::I18NString::data ( ) const -> ValueType *
noexcept

◆ operator ice::String()

ice::I18NString::operator ice::String ( ) const
inlinenoexcept

◆ resolve()

bool ice::I18NString::resolve ( )
noexcept

◆ size()

auto ice::I18NString::size ( ) const -> SizeType
noexcept

Member Data Documentation

◆ _data

void const* ice::I18NString::_data = nullptr

◆ _data_offset

ice::i32 ice::I18NString::_data_offset = 0

◆ _size_offset

ice::i32 ice::I18NString::_size_offset = 0

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