libzypp  17.35.11
zyppng::str Namespace Reference

Functions

template<typename T >
std::optional< T > safe_strtonum (const std::string_view &val)
 
template<typename StrType , typename T = std::remove_reference_t<StrType>>
trim (StrType &&s, const Trim trim_r)
 
template<class TOutputIterator >
void split (const boost::string_view &line_r, TOutputIterator result_r, const boost::string_view &sepchars_r=" \, const Trim trim_r=Trim::NO_TRIM)
 

Function Documentation

◆ safe_strtonum()

template<typename T >
std::optional<T> zyppng::str::safe_strtonum ( const std::string_view &  val)

Definition at line 23 of file string.h.

◆ trim()

template<typename StrType , typename T = std::remove_reference_t<StrType>>
T zyppng::str::trim ( StrType &&  s,
const Trim  trim_r 
)

Definition at line 35 of file string.h.

◆ split()

template<class TOutputIterator >
void zyppng::str::split ( const boost::string_view &  line_r,
TOutputIterator  result_r,
const boost::string_view &  sepchars_r = " \t",
const Trim  trim_r = Trim::NO_TRIM 
)

Definition at line 76 of file string.h.