Home
last modified time | relevance | path

Searched refs:string_property (Results 1 – 2 of 2) sorted by relevance

/external/dynamic_depth/internal/xmpmeta/
Dxmp_parser.cc46 bool ConvertStringPropertyToType(const string& string_property, T* value);
263 bool ConvertStringPropertyToType(const string& string_property, T* value) { in ConvertStringPropertyToType() argument
269 bool ConvertStringPropertyToType<bool>(const string& string_property, in ConvertStringPropertyToType() argument
271 return BoolStringToBool(string_property, value); in ConvertStringPropertyToType()
275 bool ConvertStringPropertyToType<double>(const string& string_property, in ConvertStringPropertyToType() argument
277 *value = std::stod(string_property); in ConvertStringPropertyToType()
282 bool ConvertStringPropertyToType<int>(const string& string_property, in ConvertStringPropertyToType() argument
285 for (int i = 0; i < string_property.size(); ++i) { in ConvertStringPropertyToType()
286 if (!isdigit(string_property[i])) { in ConvertStringPropertyToType()
291 *value = std::atoi(string_property.c_str()); // NOLINT in ConvertStringPropertyToType()
[all …]
/external/icing/icing/schema/
Dsection-manager_test.cc445 auto string_property = document_type.add_properties(); in TEST_F() local
446 string_property->set_property_name("string"); in TEST_F()
447 string_property->set_data_type(PropertyConfigProto::DataType::STRING); in TEST_F()
448 string_property->set_cardinality(PropertyConfigProto::Cardinality::REQUIRED); in TEST_F()
449 string_property->mutable_string_indexing_config()->set_term_match_type( in TEST_F()
451 string_property->mutable_string_indexing_config()->set_tokenizer_type( in TEST_F()
519 auto string_property = document_type.add_properties(); in TEST_F() local
520 string_property->set_property_name("string"); in TEST_F()
521 string_property->set_data_type(PropertyConfigProto::DataType::STRING); in TEST_F()
522 string_property->set_cardinality(PropertyConfigProto::Cardinality::REQUIRED); in TEST_F()
[all …]