From 9ad2894d3a432775a19303a5e8b7a79092017963 Mon Sep 17 00:00:00 2001
From: mikhnenko <mikhnenko@yandex-team.com>
Date: Fri, 4 Oct 2024 09:58:47 +0300
Subject: Remove Size, Empty and Data usages from library
 commit_hash:ef5ad4cfa9e68bbfc586492e8c376c732d0a48af

---
 library/cpp/regex/pcre/benchmark/main.cpp | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

(limited to 'library/cpp/regex/pcre/benchmark')

diff --git a/library/cpp/regex/pcre/benchmark/main.cpp b/library/cpp/regex/pcre/benchmark/main.cpp
index 3c11ef4f29..4899dcc8f5 100644
--- a/library/cpp/regex/pcre/benchmark/main.cpp
+++ b/library/cpp/regex/pcre/benchmark/main.cpp
@@ -17,19 +17,19 @@ static TVector<TString> GenerateHaystacks() {
     // Generate long randomized haystacks to prevent cache hit
     TVector<TString> result(Reserve(HaystacksCount));
     for (size_t i = 0; i < HaystacksCount; ++i) {
-        result.push_back(TString::Join(ComplexPattern.SubString(MinPrefix + i, ComplexPattern.Size() - MinPrefix - i), ComplexPattern.SubString(0, MinPrefix + i)));
+        result.push_back(TString::Join(ComplexPattern.SubString(MinPrefix + i, ComplexPattern.size() - MinPrefix - i), ComplexPattern.SubString(0, MinPrefix + i)));
     }
     return result;
 }
 
 static const TVector<TString> Haystacks{GenerateHaystacks()};
 
-static const NPcre::TPcre<char> Simple{SimplePattern.Data()};
-static const NPcre::TPcre<char> SimpleStudy{SimplePattern.Data(), NPcre::EOptimize::Study};
-static const NPcre::TPcre<char> SimpleJIT{SimplePattern.Data(), NPcre::EOptimize::JIT};
-static const NPcre::TPcre<char> Complex{ComplexPattern.Data()};
-static const NPcre::TPcre<char> ComplexStudy{ComplexPattern.Data(), NPcre::EOptimize::Study};
-static const NPcre::TPcre<char> ComplexJIT{ComplexPattern.Data(), NPcre::EOptimize::JIT};
+static const NPcre::TPcre<char> Simple{SimplePattern.data()};
+static const NPcre::TPcre<char> SimpleStudy{SimplePattern.data(), NPcre::EOptimize::Study};
+static const NPcre::TPcre<char> SimpleJIT{SimplePattern.data(), NPcre::EOptimize::JIT};
+static const NPcre::TPcre<char> Complex{ComplexPattern.data()};
+static const NPcre::TPcre<char> ComplexStudy{ComplexPattern.data(), NPcre::EOptimize::Study};
+static const NPcre::TPcre<char> ComplexJIT{ComplexPattern.data(), NPcre::EOptimize::JIT};
 
 static void Benchmark(benchmark::State& state, const NPcre::TPcre<char>& pattern) {
     for (auto _ : state) {
-- 
cgit v1.2.3