Version: 9.15.0
SUIT_tools Namespace Reference

Classes

class  SUIT_SentenceMatcher
 Approximate string matcher, treats strings as sentences composed of words. More...
 

Functions

QString substituteBashVars (const QString &theString)
 Replaces all Bash-style variables (enlosed with "${" and "}") with values of corresponding environment variables. More...
 
QString substituteDOSVars (const QString &theString)
 Replaces all DOS-style variables (enlosed with "%") with values of corresponding environment variables. More...
 
QString substituteVars (const QString &theString)
 Replaces all Bash- and DOS- style variables with values of corresponding environment variables. More...
 
std::wstring to_wstring (const std::string &theStdString)
 
template<class Iterator >
std::size_t distance (const Iterator &theStartIt, const Iterator &theFinalIt)
 Compensates lack of std::distance(..) prior to C++17. Does not check whether the iterators iterate the same container instance. More...
 
template<class Container >
std::size_t distanceFromBegin (const Container &theContainer, const typename Container::const_iterator &theIt)
 

Function Documentation

◆ distance()

template<class Iterator >
std::size_t SUIT_tools::distance ( const Iterator &  theStartIt,
const Iterator &  theFinalIt 
)

Compensates lack of std::distance(..) prior to C++17. Does not check whether the iterators iterate the same container instance.

◆ distanceFromBegin()

template<class Container >
std::size_t SUIT_tools::distanceFromBegin ( const Container &  theContainer,
const typename Container::const_iterator &  theIt 
)
Returns
Distance from the theContainer.begin() to theIt.
Inf, if theIt is not iterator of theContainer.

References distance().

◆ substituteBashVars()

QString SUIT_tools::substituteBashVars ( const QString &  theString)

Replaces all Bash-style variables (enlosed with "${" and "}") with values of corresponding environment variables.

References rx.

◆ substituteDOSVars()

QString SUIT_tools::substituteDOSVars ( const QString &  theString)

Replaces all DOS-style variables (enlosed with "%") with values of corresponding environment variables.

References Qtx::getenv(), and rx.

◆ substituteVars()

QString SUIT_tools::substituteVars ( const QString &  theString)

Replaces all Bash- and DOS- style variables with values of corresponding environment variables.

References substituteBashVars(), and substituteDOSVars().

◆ to_wstring()

std::wstring SUIT_tools::to_wstring ( const std::string &  theStdString)