Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
regex.hpp File Reference

Convenience wrappers and helpers for dealing with regular expressions. More...

Go to the source code of this file.

Description

Convenience wrappers and helpers for dealing with regular expressions.

Definition in file regex.hpp.

#include "lib/iter-adapter.hpp"
#include <regex>
#include <string>
#include <optional>

Namespaces

namespace  util
 
namespace  lib
 Implementation namespace for support and library code.
 

Classes

struct  RegexSearchIter
 wrapped regex iterator to allow usage in foreach loops More...
 

Functions

template<typename STR >
std::optional< smatch > matchAtStart (STR &&toParse, regex const &regex)
 Helper algorithm to perform a search but require the match to start at the beginning of the string or sequence, while accepting trailing content.
 
template<typename STR >
size_t leadingWhitespace (STR &&toParse)