Home
last modified time | relevance | path

Searched refs:InsertIfNotPresent (Results 1 – 10 of 10) sorted by relevance

/external/libtextclassifier/util/gtl/
Dmap_util.h48 bool InsertIfNotPresent(Collection* const collection, in InsertIfNotPresent() function
55 bool InsertIfNotPresent( in InsertIfNotPresent() function
59 return InsertIfNotPresent(collection, in InsertIfNotPresent()
/external/regex-re2/util/
Dsparse_array_test.cc89 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/
Dmap_util.h321 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/
Dmessage.cc332 if (!InsertIfNotPresent(&file_map_, file, registration_func)) { in RegisterFile()
347 if (!InsertIfNotPresent(&type_map_, descriptor, prototype)) { in RegisterType()
Ddescriptor_database.cc56 if (!InsertIfNotPresent(&by_name_, file.name(), value)) { in AddFile()
156 if (!InsertIfNotPresent( in AddExtension()
Ddescriptor.cc890 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()
Dextension_set.cc100 if (!InsertIfNotPresent(registry_, std::make_pair(containing_type, number), in Register()
/external/protobuf/src/google/protobuf/util/internal/
Ddefault_value_objectwriter.cc299 InsertIfNotPresent(&orig_children_map, children_[i]->name_, i); in PopulateChildren()
Dproto_writer.cc406 InsertIfNotPresent(&oneof_indices_, index); in TakeOneofIndex()
Dprotostream_objectwriter.cc405 return InsertIfNotPresent(&map_keys_, map_key.ToString()); in InsertMapKeyIfNotPresent()