Searched refs:InsertIfNotPresent (Results 1 – 10 of 10) sorted by relevance
/external/libtextclassifier/util/gtl/ |
D | map_util.h | 48 bool InsertIfNotPresent(Collection* const collection, in InsertIfNotPresent() function 55 bool InsertIfNotPresent( in InsertIfNotPresent() function 59 return InsertIfNotPresent(collection, in InsertIfNotPresent()
|
/external/regex-re2/util/ |
D | sparse_array_test.cc | 89 TEST_F(SparseArrayStringTest, InsertIfNotPresent) { in TEST_F() argument 91 EXPECT_TRUE(InsertIfNotPresent(&str_map_, 3, "r")); in TEST_F() 93 EXPECT_FALSE(InsertIfNotPresent(&str_map_, 3, "other value")); in TEST_F()
|
/external/protobuf/src/google/protobuf/stubs/ |
D | map_util.h | 321 bool InsertIfNotPresent(Collection* const collection, 328 bool InsertIfNotPresent( 332 return InsertIfNotPresent( 340 GOOGLE_CHECK(InsertIfNotPresent(collection, value)) << "duplicate value: " << value; 347 GOOGLE_CHECK(InsertIfNotPresent(collection, value)) << "duplicate value."; 356 GOOGLE_CHECK(InsertIfNotPresent(collection, key, data)) 366 GOOGLE_CHECK(InsertIfNotPresent(collection, key, data)) << "duplicate key.";
|
/external/protobuf/src/google/protobuf/ |
D | message.cc | 332 if (!InsertIfNotPresent(&file_map_, file, registration_func)) { in RegisterFile() 347 if (!InsertIfNotPresent(&type_map_, descriptor, prototype)) { in RegisterType()
|
D | descriptor_database.cc | 56 if (!InsertIfNotPresent(&by_name_, file.name(), value)) { in AddFile() 156 if (!InsertIfNotPresent( in AddExtension()
|
D | descriptor.cc | 890 InsertIfNotPresent(&unknown_enum_values_by_number_, in FindEnumValueByNumberCreatingIfUnknown() 915 if (InsertIfNotPresent(&symbols_by_name_, full_name.c_str(), symbol)) { in AddSymbol() 926 return InsertIfNotPresent(&symbols_by_parent_, by_parent_key, symbol); in AddAliasUnderParent() 930 if (InsertIfNotPresent(&files_by_name_, file->name().c_str(), file)) { in AddFile() 952 InsertIfNotPresent(&fields_by_lowercase_name_, lowercase_key, field); in AddFieldByStylizedNames() 955 InsertIfNotPresent(&fields_by_camelcase_name_, camelcase_key, field); in AddFieldByStylizedNames() 960 return InsertIfNotPresent(&fields_by_number_, key, field); in AddFieldByNumber() 966 return InsertIfNotPresent(&enum_values_by_number_, key, value); in AddEnumValueByNumber() 971 if (InsertIfNotPresent(&extensions_, key, field)) { in AddExtension()
|
D | extension_set.cc | 100 if (!InsertIfNotPresent(registry_, std::make_pair(containing_type, number), in Register()
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | default_value_objectwriter.cc | 299 InsertIfNotPresent(&orig_children_map, children_[i]->name_, i); in PopulateChildren()
|
D | proto_writer.cc | 406 InsertIfNotPresent(&oneof_indices_, index); in TakeOneofIndex()
|
D | protostream_objectwriter.cc | 405 return InsertIfNotPresent(&map_keys_, map_key.ToString()); in InsertMapKeyIfNotPresent()
|