RSTools 3.1.0
Versatile C++20 utility library
Loading...
Searching...
No Matches
ToLower.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "RST/string/Char.hpp"
4
5#include <string>
6#include <string_view>
7
8namespace RST::String {
9
12
14 void toLower(std::string& str) noexcept;
15
17 [[nodiscard]] std::string toLowerCopy(std::string_view str);
19}
String helpers: case, trimming, splitting, joining, replacing, parsing and hashing.
Definition Char.hpp:3
constexpr char toLower(char c) noexcept
Definition Char.hpp:16
std::string toLowerCopy(std::string_view str)
Returns a copy of str with its ASCII letters lowercased.
std::optional< T > parseNumber(std::string_view text, int base=10) noexcept
Parses text as a number, or returns std::nullopt if it is not entirely one.
Definition Convert.hpp:23