aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/regex/pcre/pcre_ut.cpp
blob: ad5535f96db56f1ec8947141f42a338a0304cadd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#include <library/cpp/regex/pcre/pcre.h> 
 
#include <library/cpp/testing/unittest/registar.h> 
 
template <class T> 
inline IOutputStream& operator<<(IOutputStream& out, const TVector<T>& value) { 
    size_t size = value.size(); 
    out << "["; 
    for (size_t i = 0; i < size; ++i) { 
        if (i) { 
            out << ","; 
        } 
        out << value[i]; 
    } 
    out << "]"; 
    return out; 
} 
 
template <class T, class U> 
inline IOutputStream& operator<<(IOutputStream& out, const std::pair<T, U>& value) { 
    out << "{" << value.first << "," << value.second << "}"; 
    return out; 
} 
 
// char8_t 
#define OPTIMIZE NPcre::EOptimize::None 
#define TEST_NAME(S) S 
#define STRING(S) S 
#define CHAR_TYPE char 
#include "pcre_ut_base.h" 
 
#undef OPTIMIZE 
#define OPTIMIZE NPcre::EOptimize::Study 
#undef TEST_NAME 
#define TEST_NAME(S) S ## Study 
#include "pcre_ut_base.h" 
 
#undef OPTIMIZE 
#define OPTIMIZE NPcre::EOptimize::JIT 
#undef TEST_NAME 
#define TEST_NAME(S) S ## JIT 
#include "pcre_ut_base.h" 
 
// char16_t 
#undef OPTIMIZE 
#define OPTIMIZE NPcre::EOptimize::None 
#undef TEST_NAME 
#define TEST_NAME(S) S ## 16 
#undef STRING 
#define STRING(S) u ## S 
#undef CHAR_TYPE 
#define CHAR_TYPE wchar16 
#include "pcre_ut_base.h" 
 
#undef OPTIMIZE 
#define OPTIMIZE NPcre::EOptimize::Study 
#undef TEST_NAME 
#define TEST_NAME(S) S ## Study16 
#include "pcre_ut_base.h" 
 
#undef OPTIMIZE 
#define OPTIMIZE NPcre::EOptimize::JIT 
#undef TEST_NAME 
#define TEST_NAME(S) S ## JIT16 
#include "pcre_ut_base.h" 
 
// char32_t 
#undef OPTIMIZE 
#define OPTIMIZE NPcre::EOptimize::None 
#undef TEST_NAME 
#define TEST_NAME(S) S ## 32 
#undef STRING 
#define STRING(S) U ## S 
#undef CHAR_TYPE 
#define CHAR_TYPE wchar32 
#include "pcre_ut_base.h" 
 
#undef OPTIMIZE 
#define OPTIMIZE NPcre::EOptimize::Study 
#undef TEST_NAME 
#define TEST_NAME(S) S ## Study32 
#include "pcre_ut_base.h" 
 
#undef OPTIMIZE 
#define OPTIMIZE NPcre::EOptimize::JIT 
#undef TEST_NAME 
#define TEST_NAME(S) S ## JIT32 
#include "pcre_ut_base.h"