Utility class for case-insensitive string operations.
More...
#include <unordered_map.h>
|
| 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.
|
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.
◆ 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
-
| N | Size of the character array |
- Parameters
-
| str | The 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
-
- 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
-
- Returns
- std::string Lowercase version of the input string