mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Merge branch 'master' of git.lyx.org:lyx
This commit is contained in:
commit
c08a5ade54
@ -17,7 +17,7 @@
|
|||||||
# ifdef _MSC_VER
|
# ifdef _MSC_VER
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
// inheriting 'private' to see which functions are used and if there are
|
// inheriting 'private' to see which functions are used and if there are
|
||||||
// other ECMAScrip defaults
|
// other ECMAScript defaults
|
||||||
// FIXME: Is this really needed?
|
// FIXME: Is this really needed?
|
||||||
// If yes, then the MSVC regex implementation is not standard-conforming.
|
// If yes, then the MSVC regex implementation is not standard-conforming.
|
||||||
class regex : private std::regex
|
class regex : private std::regex
|
||||||
@ -35,20 +35,20 @@ namespace lyx {
|
|||||||
};
|
};
|
||||||
template<class T>
|
template<class T>
|
||||||
bool regex_match(T t, const regex& r) { return std::regex_match(t, r.toStd()); }
|
bool regex_match(T t, const regex& r) { return std::regex_match(t, r.toStd()); }
|
||||||
|
template<class T>
|
||||||
|
bool regex_match(T t, std::smatch& m, const regex& r) { return std::regex_match(t, m, r.toStd()); }
|
||||||
template<class T, class V>
|
template<class T, class V>
|
||||||
bool regex_match(T t, V v, const regex& r) { return std::regex_match(t, v, r.toStd()); }
|
bool regex_match(T t, V v, std::smatch& m, const regex& r) { return std::regex_match(t, v, m, r.toStd()); }
|
||||||
template<class T, class V, class U, class H>
|
|
||||||
bool regex_match(T t, V v, H h, const regex& r, U u) { return std::regex_match(t, v, h, r.toStd(), u); }
|
|
||||||
template<class T, class V>
|
template<class T, class V>
|
||||||
std::string regex_replace(T t, const regex& r, V v) { return std::regex_replace(t, r.toStd(), v); }
|
std::string regex_replace(T t, const regex& r, V v) { return std::regex_replace(t, r.toStd(), v); }
|
||||||
//template<class T, class V, class U, class H>
|
template<class T, class V, class U, class H>
|
||||||
//std::string regex_replace(T t, V v, U u, const regex& r, H h) { return std::regex_replace(t, v, u, r.toStd(), h); }
|
T regex_replace(T t, V v, U u, const regex& r, H h) { return std::regex_replace(t, v, u, r.toStd(), h); }
|
||||||
template<class T>
|
template<class T>
|
||||||
bool regex_search(T t, const regex& r) { return std::regex_search(t, r.toStd()); }
|
bool regex_search(T t, const regex& r) { return std::regex_search(t, r.toStd()); }
|
||||||
|
template<class T>
|
||||||
|
bool regex_search(T t, std::smatch& m, const regex& r) { return std::regex_search(t, m, r.toStd()); }
|
||||||
template<class T, class V>
|
template<class T, class V>
|
||||||
bool regex_search(T t, V v, const regex& r) { return std::regex_search(t, v, r.toStd()); }
|
bool regex_search(T t, V v, std::smatch& m, const regex& r) { return std::regex_search(t, v, m, r.toStd()); }
|
||||||
template<class T, class V, class U>
|
|
||||||
bool regex_search(T t, V v, U u, const regex& r) { return std::regex_search(t, v, u, r.toStd()); }
|
|
||||||
|
|
||||||
struct sregex_iterator : std::sregex_iterator
|
struct sregex_iterator : std::sregex_iterator
|
||||||
{
|
{
|
||||||
@ -64,6 +64,8 @@ namespace lyx {
|
|||||||
namespace lyx {
|
namespace lyx {
|
||||||
using LR_NS::regex;
|
using LR_NS::regex;
|
||||||
using LR_NS::regex_match;
|
using LR_NS::regex_match;
|
||||||
|
using LR_NS::regex_replace;
|
||||||
|
using LR_NS::regex_search;
|
||||||
using LR_NS::sregex_iterator;
|
using LR_NS::sregex_iterator;
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
@ -73,16 +75,16 @@ using LR_NS::sregex_iterator;
|
|||||||
namespace lyx {
|
namespace lyx {
|
||||||
using LR_NS::regex;
|
using LR_NS::regex;
|
||||||
using LR_NS::regex_match;
|
using LR_NS::regex_match;
|
||||||
|
using LR_NS::regex_replace;
|
||||||
|
using LR_NS::regex_search;
|
||||||
using LR_NS::sregex_iterator;
|
using LR_NS::sregex_iterator;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
using LR_NS::smatch;
|
using LR_NS::smatch;
|
||||||
using LR_NS::regex_replace;
|
|
||||||
using LR_NS::basic_regex;
|
using LR_NS::basic_regex;
|
||||||
using LR_NS::regex_error;
|
using LR_NS::regex_error;
|
||||||
using LR_NS::regex_search;
|
|
||||||
using LR_NS::match_results;
|
using LR_NS::match_results;
|
||||||
|
|
||||||
namespace regex_constants
|
namespace regex_constants
|
||||||
|
Loading…
Reference in New Issue
Block a user