opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Namespaces | Concepts | Functions
string_helpers.h File Reference
#include <cstddef>
#include <cstdint>
#include <optional>
#include <ostream>
#include <sstream>
#include <string>
#include <string_view>
#include <utility>
Include dependency graph for string_helpers.h:

Go to the source code of this file.

Namespaces

namespace  osc
 

Concepts

concept  osc::OutputStreamable
 

Functions

bool osc::contains_case_insensitive (std::string_view sv, std::string_view substr)
 
bool osc::is_string_case_insensitive_greater_than (std::string_view a, std::string_view b)
 
bool osc::is_equal_case_insensitive (std::string_view a, std::string_view b)
 
bool osc::is_valid_identifier (std::string_view sv)
 
std::string_view osc::strip_whitespace (std::string_view sv)
 
std::optional< floatosc::from_chars_strip_whitespace (std::string_view sv)
 
std::string osc::truncate_with_ellipsis (std::string_view sv, size_t max_length)
 
std::string_view osc::substring_after_last (std::string_view sv, std::string_view::value_type delimiter)
 
std::optional< std::pair< std::string_view, std::string_view > > osc::rsplit_once (std::string_view sv, std::string_view::value_type delimiter)
 
std::pair< char, charosc::to_hex_chars (uint8_t)
 
std::optional< uint8_tosc::try_parse_hex_chars_as_byte (char, char)
 
template<OutputStreamable T>
std::string osc::stream_to_string (const T &v)
 
template<std::ranges::input_range R>
requires OutputStreamable<std::ranges::range_value_t<R>>
std::string osc::join (R &&r, std::string_view delimiter)
 
std::string osc::replace (std::string_view str, std::string_view from, std::string_view to)