Home
last modified time | relevance | path

Searched refs:regex_matcher (Results 1 – 13 of 13) sorted by relevance

/aosp_15_r20/external/grpc-grpc/src/core/lib/matchers/
H A Dmatchers.cc38 auto regex_matcher = std::make_unique<RE2>(std::string(matcher)); in Create() local
39 if (!regex_matcher->ok()) { in Create()
42 regex_matcher->error())); in Create()
44 return StringMatcher(std::move(regex_matcher)); in Create()
54 StringMatcher::StringMatcher(std::unique_ptr<RE2> regex_matcher) in StringMatcher() argument
55 : type_(Type::kSafeRegex), regex_matcher_(std::move(regex_matcher)) {} in StringMatcher()
H A Dmatchers.h65 RE2* regex_matcher() const { return regex_matcher_.get(); } in regex_matcher() function
71 explicit StringMatcher(std::unique_ptr<RE2> regex_matcher);
136 RE2* regex_matcher() const { return matcher_.regex_matcher(); } in regex_matcher() function
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/src/core/lib/matchers/
Dmatchers.cc39 auto regex_matcher = std::make_unique<RE2>(std::string(matcher)); in Create() local
40 if (!regex_matcher->ok()) { in Create()
43 regex_matcher->error())); in Create()
45 return StringMatcher(std::move(regex_matcher)); in Create()
55 StringMatcher::StringMatcher(std::unique_ptr<RE2> regex_matcher) in StringMatcher() argument
56 : type_(Type::kSafeRegex), regex_matcher_(std::move(regex_matcher)) {} in StringMatcher()
Dmatchers.h65 RE2* regex_matcher() const { return regex_matcher_.get(); } in regex_matcher() function
71 explicit StringMatcher(std::unique_ptr<RE2> regex_matcher);
136 RE2* regex_matcher() const { return matcher_.regex_matcher(); } in regex_matcher() function
/aosp_15_r20/external/libtextclassifier/native/utils/grammar/parsing/
H A Dparser.cc150 std::unique_ptr<UniLib::RegexMatcher> regex_matcher = in SortedSymbolsForInput() local
154 while (regex_matcher->Find(&status) && in SortedSymbolsForInput()
156 const CodepointSpan span{regex_matcher->Start(0, &status) + context_start, in SortedSymbolsForInput()
157 regex_matcher->End(0, &status) + context_start}; in SortedSymbolsForInput()
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/src/core/ext/xds/
Dxds_route_config.cc452 const envoy_type_matcher_v3_RegexMatcher* regex_matcher = in RoutePathMatchParse() local
454 GPR_ASSERT(regex_matcher != nullptr); in RoutePathMatchParse()
457 envoy_type_matcher_v3_RegexMatcher_regex(regex_matcher)); in RoutePathMatchParse()
509 const envoy_type_matcher_v3_RegexMatcher* regex_matcher = in RouteHeaderMatchersParse() local
511 GPR_ASSERT(regex_matcher != nullptr); in RouteHeaderMatchersParse()
514 envoy_type_matcher_v3_RegexMatcher_regex(regex_matcher)); in RouteHeaderMatchersParse()
548 const auto* regex_matcher = in RouteHeaderMatchersParse() local
550 GPR_ASSERT(regex_matcher != nullptr); in RouteHeaderMatchersParse()
552 envoy_type_matcher_v3_RegexMatcher_regex(regex_matcher)); in RouteHeaderMatchersParse()
Dxds_common_types.cc236 auto* regex_matcher = envoy_type_matcher_v3_StringMatcher_safe_regex( in CertificateValidationContextParse() local
239 envoy_type_matcher_v3_RegexMatcher_regex(regex_matcher)); in CertificateValidationContextParse()
Dxds_http_rbac_filter.cc73 const envoy_type_matcher_v3_RegexMatcher* regex_matcher) { in ParseRegexMatcherToJson() argument
77 envoy_type_matcher_v3_RegexMatcher_regex(regex_matcher)))}}); in ParseRegexMatcherToJson()
/aosp_15_r20/external/grpc-grpc/src/core/ext/xds/
H A Dxds_route_config.cc466 const envoy_type_matcher_v3_RegexMatcher* regex_matcher = in RoutePathMatchParse() local
468 GPR_ASSERT(regex_matcher != nullptr); in RoutePathMatchParse()
471 envoy_type_matcher_v3_RegexMatcher_regex(regex_matcher)); in RoutePathMatchParse()
523 const envoy_type_matcher_v3_RegexMatcher* regex_matcher = in RouteHeaderMatchersParse() local
525 GPR_ASSERT(regex_matcher != nullptr); in RouteHeaderMatchersParse()
528 envoy_type_matcher_v3_RegexMatcher_regex(regex_matcher)); in RouteHeaderMatchersParse()
562 const auto* regex_matcher = in RouteHeaderMatchersParse() local
564 GPR_ASSERT(regex_matcher != nullptr); in RouteHeaderMatchersParse()
566 envoy_type_matcher_v3_RegexMatcher_regex(regex_matcher)); in RouteHeaderMatchersParse()
H A Dxds_common_types.cc234 auto* regex_matcher = envoy_type_matcher_v3_StringMatcher_safe_regex( in CertificateValidationContextParse() local
237 envoy_type_matcher_v3_RegexMatcher_regex(regex_matcher)); in CertificateValidationContextParse()
H A Dxds_http_rbac_filter.cc73 const envoy_type_matcher_v3_RegexMatcher* regex_matcher) { in ParseRegexMatcherToJson() argument
77 envoy_type_matcher_v3_RegexMatcher_regex(regex_matcher)))}}); in ParseRegexMatcherToJson()
/aosp_15_r20/external/grpc-grpc/test/core/security/
H A Drbac_translator_test.cc49 ? arg->string_matcher.value().regex_matcher()->pattern() ==
59 ? arg->string_matcher.regex_matcher()->pattern() ==
69 ? arg->header_matcher.regex_matcher()->pattern() ==
/aosp_15_r20/external/grpc-grpc/test/core/xds/
H A Dxds_common_types_test.cc427 EXPECT_EQ(match_subject_alt_names[4].regex_matcher()->pattern(), "regex"); in TEST_F()