SigUtil  0.95
Utility modules for modern C++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
regex.hpp File Reference

正規表現ユーティリティ More...

Go to the source code of this file.

Classes

struct  sig::impl::Str2RegexSelector< T >
 
struct  sig::impl::Str2RegexSelector< std::string >
 
struct  sig::impl::Str2RegexSelector< std::wstring >
 

Namespaces

 sig
 
 sig::impl
 

Macros

#define NOMINMAX
 
#define SIG_RegexSearch   std::regex_search
 
#define SIG_RegexReplace   std::regex_replace
 

Typedefs

using SIG_Regex = std::regex
 
using SIG_WRegex = std::wregex
 
using SIG_SMatch = std::smatch
 
using SIG_WSMatch = std::wsmatch
 

Functions

auto sig::escape_regex (std::string const &expression) -> std::string
 与えられた文字中に含まれる、正規表現の特殊文字をエスケープする More...
 
auto sig::escape_regex (std::wstring const &expression) -> std::wstring
 
template<class S >
auto sig::make_regex (S const &expression) -> typename impl::Str2RegexSelector< impl::string_t< S >>::regex
 エスケープ処理を行い、regexオブジェクトを返す More...
 
template<class S , class TS = impl::string_t<S>>
auto sig::regex_search (S &&src, typename impl::Str2RegexSelector< TS >::regex const &expression) -> Maybe< std::vector< std::vector< TS >>>
 std::regex_search のラッパ関数 More...
 

Detailed Description

正規表現ユーティリティ

Definition in file regex.hpp.

Macro Definition Documentation

#define NOMINMAX

Definition at line 16 of file regex.hpp.

#define SIG_RegexReplace   std::regex_replace

Definition at line 36 of file regex.hpp.

#define SIG_RegexSearch   std::regex_search

Definition at line 35 of file regex.hpp.

Typedef Documentation

using SIG_Regex = std::regex

Definition at line 31 of file regex.hpp.

using SIG_SMatch = std::smatch

Definition at line 33 of file regex.hpp.

using SIG_WRegex = std::wregex

Definition at line 32 of file regex.hpp.

using SIG_WSMatch = std::wsmatch

Definition at line 34 of file regex.hpp.