Lines Matching defs:str
106 static void collectionFromString(const std::string &str, typename Traits::Collection &collection,
109 char *literal = strdup(str.c_str());
123 static bool toString(const typename Traits::Type &value, std::string &str);
125 static bool fromString(const std::string &str, typename Traits::Type &result);
127 static void collectionFromString(const std::string &str,
132 const std::string &str, const char *del = AudioParameter::valueListSeparator);
135 uint32_t mask, std::string &str, const char *del = AudioParameter::valueListSeparator);
147 inline bool TypeConverter<Traits>::toString(const typename Traits::Type &value, std::string &str)
151 str = mTable[i].literal;
157 str = result;
162 inline bool TypeConverter<Traits>::fromString(const std::string &str, typename Traits::Type &result)
165 if (strcmp(mTable[i].literal, str.c_str()) == 0) {
175 inline void TypeConverter<Traits>::collectionFromString(const std::string &str,
179 char *literal = strdup(str.c_str());
191 inline uint32_t TypeConverter<Traits>::maskFromString(const std::string &str, const char *del)
193 char *literal = strdup(str.c_str());
206 inline void TypeConverter<Traits>::maskToString(uint32_t mask, std::string &str, const char *del)
213 if (!first_flag) str += del;
215 str += mTable[i].literal;
219 toString(static_cast<typename Traits::Type>(0), str);