int AudioOpenAL::find_profil (const ustring& name) const { for (size_t si = 0; si < sound_profiles.size (); si++) { if (name.compare (sound_profiles[si]->name) == 0) { return si; } } return -1; }
MetadataType inline MetadataType_from_ustring(const ustring str) { if(str.compare("title") == 0) { return TITLE; } if(str.compare("creator") == 0) { return CREATOR; } if(str.compare("subject") == 0) { return SUBJECT; } if(str.compare("description") == 0) { return DESCRIPTION; } if(str.compare("publisher") == 0) { return PUBLISHER; } if(str.compare("contributor") == 0) { return CONTRIBUTOR; } if(str.compare("date") == 0) { return DATE; } if(str.compare("type") == 0) { return TYPE; } if(str.compare("format") == 0) { return FORMAT; } if(str.compare("identifier") == 0) { return IDENTIFIER; } if(str.compare("source") == 0) { return SOURCE; } if(str.compare("language") == 0) { return LANGUAGE; } if(str.compare("relation") == 0) { return RELATION; } if(str.compare("coverage") == 0) { return COVERAGE; } if(str.compare("rights") == 0) { return RIGHTS; } if(str.compare("meta") == 0) { return META; } else { return UNKNOWN; } }