ReXGlue SDK
Loading...
Searching...
No Matches
rex::string::StringKeyIgnoreCase Struct Reference

#include <rex/string/text.h>

Inheritance diagram for rex::string::StringKeyIgnoreCase:
[legend]

Classes

struct  Hash

Public Member Functions

 StringKeyIgnoreCase (const std::string_view value)
 StringKeyIgnoreCase (std::string value)
bool operator== (const StringKeyIgnoreCase &other) const
size_t hash () const

Static Public Member Functions

static StringKeyIgnoreCase Create (const std::string_view value)
static StringKeyIgnoreCase Create (std::string value)

Detailed Description

String key that ignores ASCII case, borrowing a view or owning a copy.

Constructor & Destructor Documentation

◆ StringKeyIgnoreCase() [1/2]

rex::string::StringKeyIgnoreCase::StringKeyIgnoreCase ( const std::string_view value)
inlineexplicit

Borrows a string. The string outlives the key.

◆ StringKeyIgnoreCase() [2/2]

rex::string::StringKeyIgnoreCase::StringKeyIgnoreCase ( std::string value)
inlineexplicit

Owns a string.

Member Function Documentation

◆ Create() [1/2]

StringKeyIgnoreCase rex::string::StringKeyIgnoreCase::Create ( const std::string_view value)
inlinestatic

Creates a key that owns a copy of a string.

◆ Create() [2/2]

StringKeyIgnoreCase rex::string::StringKeyIgnoreCase::Create ( std::string value)
inlinestatic

Creates a key that owns a string.

◆ hash()

size_t rex::string::StringKeyIgnoreCase::hash ( ) const
inline

Hashes the key, ignoring ASCII case.

Returns
FNV-1a hash of the code points with ASCII letters lowercased.

◆ operator==()

bool rex::string::StringKeyIgnoreCase::operator== ( const StringKeyIgnoreCase & other) const
inline

Compares two keys, ignoring ASCII case.


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