openMSX
Classes | Functions
StringReplacer::detail Namespace Reference

Classes

struct  FromTo
 
struct  PmhReplacer
 

Functions

constexpr unsigned fnvHash (std::string_view s)
 
constexpr auto create_simple_replacer ()
 
constexpr auto create_simple_replacer (std::string_view from1, std::string_view to1)
 
constexpr auto create_simple_replacer (std::string_view from1, std::string_view to1, std::string_view from2, std::string_view to2)
 
constexpr auto create_simple_replacer (std::string_view from1, std::string_view to1, std::string_view from2, std::string_view to2, std::string_view from3, std::string_view to3)
 
constexpr auto create_simple_replacer (std::string_view from1, std::string_view to1, std::string_view from2, std::string_view to2, std::string_view from3, std::string_view to3, std::string_view from4, std::string_view to4)
 
template<typename Tuple , size_t... Is>
constexpr auto create_pmh_replacer (const Tuple &tuple, std::index_sequence< Is... >)
 

Function Documentation

◆ create_pmh_replacer()

template<typename Tuple , size_t... Is>
constexpr auto StringReplacer::detail::create_pmh_replacer ( const Tuple &  tuple,
std::index_sequence< Is... >   
)
constexpr

Definition at line 128 of file StringReplacer.hh.

References fnvHash().

Referenced by StringReplacer::create().

◆ create_simple_replacer() [1/5]

constexpr auto StringReplacer::detail::create_simple_replacer ( )
constexpr

Definition at line 52 of file StringReplacer.hh.

Referenced by StringReplacer::create().

◆ create_simple_replacer() [2/5]

constexpr auto StringReplacer::detail::create_simple_replacer ( std::string_view  from1,
std::string_view  to1 
)
constexpr

Definition at line 57 of file StringReplacer.hh.

◆ create_simple_replacer() [3/5]

constexpr auto StringReplacer::detail::create_simple_replacer ( std::string_view  from1,
std::string_view  to1,
std::string_view  from2,
std::string_view  to2 
)
constexpr

Definition at line 66 of file StringReplacer.hh.

◆ create_simple_replacer() [4/5]

constexpr auto StringReplacer::detail::create_simple_replacer ( std::string_view  from1,
std::string_view  to1,
std::string_view  from2,
std::string_view  to2,
std::string_view  from3,
std::string_view  to3 
)
constexpr

Definition at line 77 of file StringReplacer.hh.

◆ create_simple_replacer() [5/5]

constexpr auto StringReplacer::detail::create_simple_replacer ( std::string_view  from1,
std::string_view  to1,
std::string_view  from2,
std::string_view  to2,
std::string_view  from3,
std::string_view  to3,
std::string_view  from4,
std::string_view  to4 
)
constexpr

Definition at line 90 of file StringReplacer.hh.

◆ fnvHash()

constexpr unsigned StringReplacer::detail::fnvHash ( std::string_view  s)
constexpr

Definition at line 40 of file StringReplacer.hh.

Referenced by create_pmh_replacer().