RSTools 3.1.0
Versatile C++20 utility library
Loading...
Searching...
No Matches
ToUpper.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 toUpper(std::string& str) noexcept;
15
17 [[nodiscard]] std::string toUpperCopy(std::string_view str);
19}
String helpers: case, trimming, splitting, joining, replacing, parsing and hashing.
Definition Char.hpp:3
constexpr char toUpper(char c) noexcept
Definition Char.hpp:17
std::string toUpperCopy(std::string_view str)
Returns a copy of str with its ASCII letters uppercased.
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