CommonLib
Loading...
Searching...
No Matches
String.inl File Reference
#include <algorithm>
#include <charconv>
#include <iomanip>
#include <regex>

Go to the source code of this file.

Namespaces

namespace  hedgedev
namespace  hedgedev::csl
namespace  hedgedev::csl::ut
namespace  hedgedev::csl::ut::string

Functions

template<expr::AnyString TLeft, expr::AnyString TRight>
bool hedgedev::csl::ut::string::Compare (const TLeft &in_rLeft, const TRight &in_rRight, bool in_isCaseSensitive=true)
template<expr::AnyString TString, expr::AnyString TSubString>
bool hedgedev::csl::ut::string::Contains (const TString &in_rStr, const TSubString &in_rSubStr, bool in_isCaseSensitive=true)
template<expr::AnyString TDst, expr::AnyString TSrc>
std::conditional_t< std::is_same_v< TDst, TSrc > &&!std::is_pointer_v< TSrc >, const TDst &, TDst > hedgedev::csl::ut::string::Convert (const TSrc &in_rStr)
template<expr::AnyString TString, typename TChar = expr::GetCharType_t<TString>>
expr::InferredString< TString > hedgedev::csl::ut::string::Escape (const TString &in_rStr, TChar in_searchChar, TChar in_escapeChar=TChar('\\'))
template<expr::AnyString TString>
expr::InferredString< TString > hedgedev::csl::ut::string::Format (const TString in_str,...)
template<expr::AnyString TString>
size_t hedgedev::csl::ut::string::GetWidth (const TString &in_rStr)
template<expr::AnyString TString, expr::AnyString TUrl, typename TOut = expr::PrecedentInferredString<TString, TUrl>>
TOut hedgedev::csl::ut::string::Hyperlink (const TString &in_rStr, const TUrl &in_rUrl)
template<expr::AnyString TDelimiter, expr::AnyString TCollection>
expr::InferredString< TCollection > hedgedev::csl::ut::string::Join (const TDelimiter &in_rDelimiter, const std::vector< TCollection > &in_rStrings)
template<expr::AnyString TDelimiter, expr::AnyString... TArgs, typename TOut = expr::PrecedentInferredString<TDelimiter, TArgs...>>
TOut hedgedev::csl::ut::string::Join (const TDelimiter &in_rDelimiter, const TArgs &... in_rArgs)
template<expr::AnyString TString, expr::AnyString TPadString, typename TOut = expr::PrecedentInferredString<TString, TPadString>>
TOut hedgedev::csl::ut::string::Pad (const TString &in_rStr, const TPadString &in_rPadStr)
template<typename TOut, expr::AnyString TString>
TOut hedgedev::csl::ut::string::Parse (const TString &in_rStr)
template<expr::AnyString... TArgs, typename TOut = expr::PrecedentInferredString<TArgs...>>
std::array< TOut, sizeof...(TArgs)> hedgedev::csl::ut::string::PrecedentConvert (const TArgs &... in_rArgs)
template<expr::AnyString TString>
expr::InferredString< TString > hedgedev::csl::ut::string::RemoveXmlTags (const TString &in_rStr)
template<expr::AnyString TString, expr::AnyString TDelimiter, typename TOut = expr::PrecedentInferredString<TString, TDelimiter>>
std::vector< TOut > hedgedev::csl::ut::string::Split (const TString &in_rStr, const TDelimiter &in_rDelimiter)
template<expr::AnyString TString>
expr::InferredString< TString > hedgedev::csl::ut::string::ToLower (const TString &in_rStr)
template<expr::AnyString TString>
expr::InferredString< TString > hedgedev::csl::ut::string::ToUpper (const TString &in_rStr)
template<expr::AnyString TString, typename TChar = expr::GetCharType_t<TString>>
expr::InferredString< TString > hedgedev::csl::ut::string::TrimStart (const TString &in_rStr, std::optional< std::vector< TChar > > in_trimChars={})
template<expr::AnyString TString, typename TChar = expr::GetCharType_t<TString>>
expr::InferredString< TString > hedgedev::csl::ut::string::TrimEnd (const TString &in_rStr, std::optional< std::vector< TChar > > in_trimChars={})
template<expr::AnyString TString, typename TChar = expr::GetCharType_t<TString>>
expr::InferredString< TString > hedgedev::csl::ut::string::Trim (const TString &in_rStr, std::optional< std::vector< TChar > > in_trimChars={})
template<expr::AnyString TString>
expr::InferredString< TString > hedgedev::csl::ut::string::Truncate (const TString &in_rStr, size_t in_maxLength, bool in_truncateEnd=true, bool in_ellipsis=true)
template<expr::BasicString TString, typename TValue>
TString hedgedev::csl::ut::string::ToHex (TValue in_value, size_t in_maxLength=sizeof(size_t) *2, bool in_prefix=true)
template<expr::AnyString TDst, expr::AnyString TSrc>
bool hedgedev::csl::ut::string::TryConvert (const TSrc &in_rSrc, TDst &out_rDst)
template<typename TOut, expr::AnyString TString>
bool hedgedev::csl::ut::string::TryParse (const TString &in_rStr, TOut &out_rValue)
template<expr::AnyString TString>
expr::InferredString< TString > hedgedev::csl::ut::string::Wrap (const TString &in_rStr, size_t in_maxWidth)