Home
last modified time | relevance | path

Searched refs:IsExtensionNumber (Results 1 – 5 of 5) sorted by relevance

/external/protobuf/src/google/protobuf/
Ddescriptor.h370 bool IsExtensionNumber(int number) const;
2010 inline bool Descriptor::IsExtensionNumber(int number) const { in PROTOBUF_DEFINE_STRING_ACCESSOR()
Ddescriptor_unittest.cc1953 TEST_F(ExtensionDescriptorTest, IsExtensionNumber) { in TEST_F() argument
1954 EXPECT_FALSE(foo_->IsExtensionNumber(9)); in TEST_F()
1955 EXPECT_TRUE(foo_->IsExtensionNumber(10)); in TEST_F()
1956 EXPECT_TRUE(foo_->IsExtensionNumber(19)); in TEST_F()
1957 EXPECT_FALSE(foo_->IsExtensionNumber(20)); in TEST_F()
1958 EXPECT_FALSE(foo_->IsExtensionNumber(29)); in TEST_F()
1959 EXPECT_TRUE(foo_->IsExtensionNumber(30)); in TEST_F()
1960 EXPECT_TRUE(foo_->IsExtensionNumber(39)); in TEST_F()
1961 EXPECT_FALSE(foo_->IsExtensionNumber(40)); in TEST_F()
Dmessage.cc496 if (field == nullptr && descriptor_->IsExtensionNumber(num)) { in _InternalParse()
Dwire_format.cc409 if (field == NULL && descriptor->IsExtensionNumber(field_number)) { in ParseAndMergePartial()
Dtext_format.cc466 if (descriptor->IsExtensionNumber(field_number)) { in ConsumeField()