diff options
author | mikhnenko <mikhnenko@yandex-team.com> | 2024-10-04 09:58:47 +0300 |
---|---|---|
committer | mikhnenko <mikhnenko@yandex-team.com> | 2024-10-04 10:14:38 +0300 |
commit | 9ad2894d3a432775a19303a5e8b7a79092017963 (patch) | |
tree | 5e53ebb5a41c45938a332cb8f13ed320047411b5 /library/cpp/regex/pcre/pcre.h | |
parent | 8b94a751187ed4a463b7f37023098505492d4574 (diff) | |
download | ydb-9ad2894d3a432775a19303a5e8b7a79092017963.tar.gz |
Remove Size, Empty and Data usages from library
commit_hash:ef5ad4cfa9e68bbfc586492e8c376c732d0a48af
Diffstat (limited to 'library/cpp/regex/pcre/pcre.h')
-rw-r--r-- | library/cpp/regex/pcre/pcre.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/regex/pcre/pcre.h b/library/cpp/regex/pcre/pcre.h index 82a9774f00..15a25689db 100644 --- a/library/cpp/regex/pcre/pcre.h +++ b/library/cpp/regex/pcre/pcre.h @@ -102,7 +102,7 @@ namespace NPcre { Y_ASSERT(workspaceSize >= 0); size_t ovecsize = workspaceSize * 3; NStackArray::TStackArray<int> ovector(ALLOC_ON_STACK(int, ovecsize)); - return ConvertReturnCode(TTraits::Exec(Code.Get(), Extra.Get(), (TStringType) string.Data(), string.Size(), 0, executeFlags, ovector.data(), ovecsize)); + return ConvertReturnCode(TTraits::Exec(Code.Get(), Extra.Get(), (TStringType) string.data(), string.size(), 0, executeFlags, ovector.data(), ovecsize)); } //! Find compiled pattern in string. @@ -123,7 +123,7 @@ namespace NPcre { for (size_t i = 0; i < ovecsize; ++i) { ovector[i] = -4; } - int rc = TTraits::Exec(Code.Get(), Extra.Get(), (TStringType) string.Data(), string.Size(), 0, executeFlags, ovector.data(), ovecsize); + int rc = TTraits::Exec(Code.Get(), Extra.Get(), (TStringType) string.data(), string.size(), 0, executeFlags, ovector.data(), ovecsize); if (ConvertReturnCode(rc)) { return MakeMaybe<TPcreMatch>(ovector[0], ovector[1]); } else { @@ -153,7 +153,7 @@ namespace NPcre { size_t ovecsize = (initialWorkspaceSize + 1) * 3; while (true) { NStackArray::TStackArray<int> ovector(ALLOC_ON_STACK(int, ovecsize)); - int rc = TTraits::Exec(Code.Get(), Extra.Get(), (TStringType) string.Data(), string.Size(), 0, executeFlags, ovector.data(), ovecsize); + int rc = TTraits::Exec(Code.Get(), Extra.Get(), (TStringType) string.data(), string.size(), 0, executeFlags, ovector.data(), ovecsize); if (rc > 0) { TPcreMatches result(Reserve(rc >> 1)); for (int i = 0, pos = 0; i < rc; ++i) { |