UniDx
読み取り中…
検索中…
一致する文字列を見つけられません
UniDx::StringId クラス

インターンプールに貯めて使う文字列 高速に比較できる [詳解]

#include <StringId.h>

公開メンバ関数

 StringId ()
constexpr std::u8string_view view () const noexcept
const char * c_str () const
 operator u8string () const
 operator std::string () const
 operator u8string_view () const
 operator std::string_view () const

静的公開メンバ関数

static StringId intern (std::string_view sv)
 文字列を必要に応じてプールに貯めてID化
static StringId intern (const char8_t *s)
 文字列を必要に応じてプールに貯めてID化
static StringId intern (std::u8string_view sv)
 文字列を必要に応じてプールに貯めてID化

フレンド

class InternPool
bool operator== (StringId a, StringId b) noexcept
 比較演算。内容比較しないので高速
bool operator!= (StringId a, StringId b) noexcept

詳解

インターンプールに貯めて使う文字列 高速に比較できる

構築子と解体子

◆ StringId()

UniDx::StringId::StringId ( )
inline

関数詳解

◆ c_str()

const char * UniDx::StringId::c_str ( ) const
inline

◆ intern() [1/3]

StringId UniDx::StringId::intern ( const char8_t * s)
inlinestatic

文字列を必要に応じてプールに貯めてID化

◆ intern() [2/3]

StringId UniDx::StringId::intern ( std::string_view sv)
inlinestatic

文字列を必要に応じてプールに貯めてID化

◆ intern() [3/3]

StringId UniDx::StringId::intern ( std::u8string_view sv)
inlinestatic

文字列を必要に応じてプールに貯めてID化

◆ operator std::string()

UniDx::StringId::operator std::string ( ) const
inlineexplicit

◆ operator std::string_view()

UniDx::StringId::operator std::string_view ( ) const
inlineexplicit

◆ operator u8string()

UniDx::StringId::operator u8string ( ) const
inlineexplicit

◆ operator u8string_view()

UniDx::StringId::operator u8string_view ( ) const
inlineexplicit

◆ view()

std::u8string_view UniDx::StringId::view ( ) const
inlineconstexprnoexcept

◆ InternPool

friend class InternPool
friend

◆ operator!=

bool operator!= ( StringId a,
StringId b )
friend

◆ operator==

bool operator== ( StringId a,
StringId b )
friend

比較演算。内容比較しないので高速


このクラス詳解は次のファイルから抽出されました: