|
BenBot 1.7.5
A chess engine
|
#include <array>#include <charconv>#include <concepts>#include <cstddef>#include <expected>#include <iterator>#include <ranges>#include <string>#include <string_view>#include <system_error>#include <utility>Go to the source code of this file.
Classes | |
| class | util::strings::string_view |
| STL class. More... | |
Namespaces | |
| namespace | util |
| namespace | util::strings |
Typedefs | |
| using | util::strings::StringViewPair = std::pair<string_view, string_view> |
Functions | |
| template<std::integral Int> | |
| constexpr Int | util::strings::int_from_string (const string_view text, Int defaultValue) noexcept |
| auto | util::strings::find_matching_close_paren (string_view input) -> std::expected< size_t, std::string > |
| template<std::integral Int> | |
| constexpr auto | util::strings::int_from_string (string_view text, Int defaultValue=0) noexcept -> Int |
| auto | util::strings::lines_view (string_view text) |
| auto | util::strings::split_at_first_space (string_view input) -> StringViewPair |
| auto | util::strings::split_at_first_space_or_newline (string_view input) -> StringViewPair |
| auto | util::strings::split_by_delim (string_view text, char delim) |
| auto | util::strings::trim (string_view text) -> string_view |
| auto | util::strings::words_view (string_view text) |
| template<size_t MaxLen = 5uz> | |
| void | util::strings::write_integer (std::integral auto value, std::string &output) |
This file provides some string handling utility functions.
Definition in file Strings.hpp.