Searched refs:IsExtensionNumber (Results 1 – 5 of 5) sorted by relevance
370 bool IsExtensionNumber(int number) const;2010 inline bool Descriptor::IsExtensionNumber(int number) const { in PROTOBUF_DEFINE_STRING_ACCESSOR()
1953 TEST_F(ExtensionDescriptorTest, IsExtensionNumber) { in TEST_F() argument1954 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()
496 if (field == nullptr && descriptor_->IsExtensionNumber(num)) { in _InternalParse()
409 if (field == NULL && descriptor->IsExtensionNumber(field_number)) { in ParseAndMergePartial()
466 if (descriptor->IsExtensionNumber(field_number)) { in ConsumeField()