Data interchange, editor suite, and runtime re-implementations for games by Retro Studios
Go to file
Lioncash 91ff474c44 hecl/hecl: Handle bounded strings within CaseInsensitiveCompare
std::string_view instances aren't guaranteed to be null-terminated, so
we shouldn't be treating them as if they are in these functions, and
should instead use a bounded comparison based off their sizes.

This way we prevent an edge-case from ever becoming a problem and also
remove an ifdef, making the code uniform across all implementations.
2019-08-15 01:21:04 -04:00
hecl hecl/hecl: Handle bounded strings within CaseInsensitiveCompare 2019-08-15 01:21:04 -04:00