system: add sregex

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2023-10-01 23:12:54 +02:00
parent 1a9b63279d
commit 9f21015209

View File

@ -21,6 +21,7 @@
#endif #endif
#include "compat.hpp" #include "compat.hpp"
#include <assert.h> #include <assert.h>
#include <regex>
#include <stdexcept> #include <stdexcept>
#include <string> #include <string>
@ -91,6 +92,11 @@ namespace stdex
/// ///
using sys_string = sstring; using sys_string = sstring;
///
/// Regular expressions for system strings
///
using sregex = std::basic_regex<stdex::schar_t>;
/// ///
/// Operating system object (file, pipe, anything with an OS handle etc.) /// Operating system object (file, pipe, anything with an OS handle etc.)
/// ///