Classes | Functions
shims Namespace Reference

Classes

struct  catchall_parser
 
class  map
 

Functions

bool isSnippetMode (bool m)
 
auto lit (char arg)
 
auto lit (std::string arg)
 
bool maximally_munched_ass (char ch)
 
template<typename IIL , typename IIR >
std::enable_if_t<!std::is_same_v< IIL, IIR > &&std::is_same_v< std::remove_const_t< typename IIL::type >, std::remove_const_t< typename IIR::type > >, booloperator== (IIL left, IIR right)
 
template<typename IIL , typename IIR >
std::enable_if_t<!std::is_same_v< IIL, IIR > &&std::is_same_v< std::remove_const_t< typename IIL::type >, std::remove_const_t< typename IIR::type > >, booloperator!= (IIL left, IIR right)
 

Function Documentation

bool shims::isSnippetMode ( bool  m)

Definition at line 9 of file parse_shims.cc.

10  {
11  static const auto _mode = bool{m};
12  return _mode;
13  }
auto shims::lit ( char  arg)
inline

Definition at line 11 of file parse_shims.h.

12  {
14  }
auto lit(std::string arg)
Definition: parse_shims.h:17
auto shims::lit ( std::string  arg)
inline

Definition at line 17 of file parse_shims.h.

18  {
19  if (arg[0] == '@' && shims::isSnippetMode())
20  arg[0] = '!';
21 
23  }
bool isSnippetMode(bool m)
Definition: parse_shims.cc:9
auto lit(std::string arg)
Definition: parse_shims.h:17
bool shims::maximally_munched_ass ( char  ch)
inline

Definition at line 39 of file parse_shims.h.

40  {
41  return !std::isgraph(ch) || ch == '#' || ch == '/' || ch == ',' ||
42  ch == ']' || ch == '}' || ch == '.' || ch == '[' || ch == ':';
43  }
template<typename IIL , typename IIR >
std::enable_if_t<!std::is_same_v<IIL, IIR> && std::is_same_v<std::remove_const_t<typename IIL::type>, std::remove_const_t<typename IIR::type> >, bool> shims::operator!= ( IIL  left,
IIR  right 
)

Definition at line 339 of file stdmap_shims.h.

340  {
341  return !operator==(left, right);
342  }
bool operator==(const QString &s1, const QString &s2)
Definition: qstring.cpp:14843
template<typename IIL , typename IIR >
std::enable_if_t<!std::is_same_v<IIL, IIR> && std::is_same_v<std::remove_const_t<typename IIL::type>, std::remove_const_t<typename IIR::type> >, bool> shims::operator== ( IIL  left,
IIR  right 
)

Definition at line 327 of file stdmap_shims.h.

328  {
329  return isSnippetMode() ?
330  left._iters.listmap_iter == right._iters.listmap_iter :
331  left._iters.mapmap_iter == right._iters.mapmap_iter;
332  }
bool isSnippetMode(bool m)
Definition: parse_shims.cc:9