diff options
| author | Anton Samokhvalov <[email protected]> | 2022-02-10 16:45:17 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:45:17 +0300 | 
| commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
| tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /library/cpp/regex/pcre/regexp_ut.cpp | |
| parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
Restoring authorship annotation for Anton Samokhvalov <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/regex/pcre/regexp_ut.cpp')
| -rw-r--r-- | library/cpp/regex/pcre/regexp_ut.cpp | 30 | 
1 files changed, 15 insertions, 15 deletions
| diff --git a/library/cpp/regex/pcre/regexp_ut.cpp b/library/cpp/regex/pcre/regexp_ut.cpp index 6ace430a16f..5184e801cc6 100644 --- a/library/cpp/regex/pcre/regexp_ut.cpp +++ b/library/cpp/regex/pcre/regexp_ut.cpp @@ -11,17 +11,17 @@ struct TRegTest {      int CompileOptions;      int RunOptions; -    TRegTest(const char* re, const char* text, const char* res, int copts = REG_EXTENDED, int ropts = 0)  -        : Regexp(re)  -        , Data(text)  -        , Result(res)  -        , CompileOptions(copts)  -        , RunOptions(ropts)  -    {  -    }  +    TRegTest(const char* re, const char* text, const char* res, int copts = REG_EXTENDED, int ropts = 0) +        : Regexp(re) +        , Data(text) +        , Result(res) +        , CompileOptions(copts) +        , RunOptions(ropts) +    { +    }  }; -struct TSubstTest: public TRegTest {  +struct TSubstTest: public TRegTest {      const char* Replacement;      const char* Replacement2; @@ -29,15 +29,15 @@ struct TSubstTest: public TRegTest {          : TRegTest(re, text, res, REG_EXTENDED, REGEXP_GLOBAL)          , Replacement(repl)          , Replacement2(repl2) -    {  -    }  +    { +    }  }; -const TRegTest REGTEST_DATA[] = {  -    TRegTest("test", "its a test and test string.", "6 10", REG_EXTENDED, 0),  +const TRegTest REGTEST_DATA[] = { +    TRegTest("test", "its a test and test string.", "6 10", REG_EXTENDED, 0),      TRegTest("test", "its a test and test string.", "6 10 15 19", REG_EXTENDED, REGEXP_GLOBAL),      TRegTest("test|[an]{0,0}", "test and test an test string tes", "0 4 4 4 5 5 6 6 7 7 8 8 9 13 13 13 14 14 15 15 16 16 17 21 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32", REG_EXTENDED, REGEXP_GLOBAL), -    TRegTest("test[an]{1,}", "test and test an test string tes", "NM", REG_EXTENDED, REGEXP_GLOBAL)};  +    TRegTest("test[an]{1,}", "test and test an test string tes", "NM", REG_EXTENDED, REGEXP_GLOBAL)};  const TSubstTest SUBSTTEST_DATA[] = {      TSubstTest("([a-zA-Z]*[0-9]+) (_[a-z]+)", "Xxx123 534 ___124 bsd _A ZXC _L 141 _sd dsfg QWE123 _bbb", "141 XXX/_sd", "$1 XXX/$2", "$2$2$2 YY$1Y/$2")}; @@ -48,7 +48,7 @@ private:  private:      UNIT_TEST_SUITE(TRegexpTest); -    UNIT_TEST(TestRe)  +    UNIT_TEST(TestRe)      UNIT_TEST(TestSubst)      UNIT_TEST(TestOffEndOfBuffer);      UNIT_TEST_SUITE_END(); | 
