|
guanaqo
1.0.0-alpha.27
Utilities for scientific software
|
String utilities for splitting, joining, and sorting.
Definition in file string-util.hpp.
#include <algorithm>#include <numeric>#include <ranges>#include <string>#include <string_view>#include <tuple>Go to the source code of this file.
Classes | |
| struct | guanaqo::join_opt |
| struct | guanaqo::join_quote_opt |
Namespaces | |
| namespace | guanaqo |
Functions | |
| auto | guanaqo::split (std::string_view full, std::string_view tok) |
Split the string full on the first occurrence of tok. | |
| auto | guanaqo::split_second (std::string_view full, std::string_view tok) |
Split the string s on the first occurrence of tok. | |
| std::string | guanaqo::join (std::ranges::input_range auto strings, join_opt opt={}) |
Join the list of strings into a single string, using the separator given by opt. | |
| std::string | guanaqo::join_quote (std::ranges::input_range auto strings, join_quote_opt opt={}) |
Join the list of strings into a single string, using the separator given by opt. | |
| void | guanaqo::sort_case_insensitive (auto &range) |
| Sort the given range of strings in-place in a case-insensitive manner. | |