Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
slick::sim::detail Namespace Reference

Functions

bool iequals (std::string_view a, std::string_view b) noexcept
 ASCII case-insensitive compare, used for every venue-name lookup.

Function Documentation

◆ iequals()

bool slick::sim::detail::iequals ( std::string_view a,
std::string_view b )
inlinenoexcept

ASCII case-insensitive compare, used for every venue-name lookup.

Not std::tolower: that is locale-dependent, and passing it a char whose value is negative - which every byte above 0x7F is on a signed-char platform - is undefined behaviour.

Definition at line 117 of file types.hpp.

Referenced by slick::sim::exch::ExchangeRegistry::find().