qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
qb::string_to_lower Class Reference

Utility class for case-insensitive string operations. More...

#include <unordered_map.h>

Static Public Member Functions

template<std::size_t N>
static std::string convert (const char(&str)[N])
 Converts a character array to lowercase.
static std::string convert (std::string const &str)
 Converts a string to lowercase.
static std::string convert (std::string_view const &str)
 Converts a string_view to lowercase.

Detailed Description

Utility class for case-insensitive string operations.

Provides functions to convert strings to lowercase for case-insensitive comparisons and lookups, with both compile-time and runtime implementations.

Member Function Documentation

◆ convert() [1/3]

template<std::size_t N>
std::string qb::string_to_lower::convert ( const char(&) str[N])
inlinestatic

Converts a character array to lowercase.

Template Parameters
NSize of the character array
Parameters
strThe input character array
Returns
std::string Lowercase version of the input string

◆ convert() [2/3]

std::string qb::string_to_lower::convert ( std::string const & str)
inlinestatic

Converts a string to lowercase.

Parameters
strThe input string
Returns
std::string Lowercase version of the input string

◆ convert() [3/3]

std::string qb::string_to_lower::convert ( std::string_view const & str)
inlinestatic

Converts a string_view to lowercase.

Parameters
strThe input string_view
Returns
std::string Lowercase version of the input string