OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmm::CiHash Struct Reference

Transparent case-insensitive hash (FNV-1a over the uppercase fold). More...

#include <StringCase.hpp>

Collaboration diagram for openswmm::CiHash:

Public Types

using is_transparent = void
 

Public Member Functions

std::size_t operator() (std::string_view s) const noexcept
 Hash borrowed bytes using 64-bit FNV-1a after ASCII uppercase folding.
 

Detailed Description

Transparent case-insensitive hash (FNV-1a over the uppercase fold).

Member Typedef Documentation

◆ is_transparent

Member Function Documentation

◆ operator()()

std::size_t openswmm::CiHash::operator() ( std::string_view s) const
inlinenoexcept

Hash borrowed bytes using 64-bit FNV-1a after ASCII uppercase folding.

Equal ieq() strings produce equal hashes; the original spelling is not modified.

Parameters
[in]sBorrowed sequence, including any embedded NUL bytes.
Returns
FNV-1a value converted to size_t; narrowed on platforms with smaller size_t.
Here is the call graph for this function:

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