Searched refs:string_property (Results 1 – 2 of 2) sorted by relevance
46 bool ConvertStringPropertyToType(const string& string_property, T* value);263 bool ConvertStringPropertyToType(const string& string_property, T* value) { in ConvertStringPropertyToType() argument269 bool ConvertStringPropertyToType<bool>(const string& string_property, in ConvertStringPropertyToType() argument271 return BoolStringToBool(string_property, value); in ConvertStringPropertyToType()275 bool ConvertStringPropertyToType<double>(const string& string_property, in ConvertStringPropertyToType() argument277 *value = std::stod(string_property); in ConvertStringPropertyToType()282 bool ConvertStringPropertyToType<int>(const string& string_property, in ConvertStringPropertyToType() argument285 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 …]
445 auto string_property = document_type.add_properties(); in TEST_F() local446 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() local520 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 …]