alpaqa 1.0.0a17
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
string-util.hpp File Reference
#include <algorithm>
#include <numeric>
#include <ranges>
#include <string>
#include <string_view>
#include <tuple>
+ Include dependency graph for string-util.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  join_opt
 
struct  join_quote_opt
 

Namespaces

namespace  alpaqa
 
namespace  alpaqa::util
 

Functions

auto split (std::string_view full, std::string_view tok)
 Split the string full on the first occurrence of tok.
 
auto split_second (std::string_view full, std::string_view tok)
 Split the string s on the first occurrence of tok.
 
std::string 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 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 sort_case_insensitive (auto &range)
 Sort the given range of strings in-place in a case-insensitive manner.
 

Class Documentation

◆ alpaqa::util::join_opt

struct alpaqa::util::join_opt
+ Collaboration diagram for join_opt:
Class Members
string_view sep = ", "
string_view empty = "∅"

◆ alpaqa::util::join_quote_opt

struct alpaqa::util::join_quote_opt
+ Collaboration diagram for join_quote_opt:
Class Members
string_view sep = ", "
string_view empty = "∅"
string_view quote_left = "\""
string_view quote_right = "\""