Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Data Structures | Variables
convert Namespace Reference

Data Structures

class  DotConverter
 
class  DotConverterRTE
 
class  DotConverterTree
 
class  GasTexConverter
 
class  LatexConverter
 
class  TikZConverter
 

Variables

auto replaceInplace
 
auto replace
 

Variable Documentation

◆ replace

auto convert::replace
inline
Initial value:
= [] ( std::string str, const std::string & what, const std::string & with ) {
replaceInplace ( str, what, with );
return str;
}
auto replaceInplace
Definition: converterCommon.hpp:10

◆ replaceInplace

auto convert::replaceInplace
inline
Initial value:
= [] ( std::string & str, const std::string & what, const std::string & with ) {
size_t index = 0;
while ( ( index = str.find ( what, index ) ) != std::string::npos ) {
str.replace ( index, what.length ( ), with );
index += with.length ( );
}
}