Lines Matching refs:extension

61 	extension in the pre-allocated \c BMessage pointed to by \c types.
66 AssociatedTypes::GetAssociatedTypes(const char *extension, BMessage *types)
68 status_t err = extension && types ? B_OK : B_BAD_VALUE;
75 // Format the extension
77 extStr = PrepExtension(extension);
85 // Add the types associated with this extension
96 /*! \brief Guesses a MIME type for the given filename based on its extension
124 // Extract the extension from the file
127 // If there was an extension, grab it and look up its associated
131 std::string extension = PrepExtension(rawExtension + 1);
136 std::set<std::string> &types = fAssociatedTypes[extension];
150 /*! \brief Guesses a MIME type for the given \c entry_ref based on its filename extension
203 // for each extension
205 const char *extension;
207 extensions->FindString(kTypesField, i, &extension) == B_OK;
210 newExtensions.insert(extension);
211 AddAssociatedType(extension, type);
281 for the given extension.
283 \param extension The file extension
290 AssociatedTypes::AddAssociatedType(const char *extension, const char *type)
292 status_t err = extension && type ? B_OK : B_BAD_VALUE;
295 extStr = PrepExtension(extension);
305 for the given extension.
307 \param extension The file extension
314 AssociatedTypes::RemoveAssociatedType(const char *extension, const char *type)
316 status_t err = extension && type ? B_OK : B_BAD_VALUE;
319 extStr = PrepExtension(extension);
323 fAssociatedTypes[extension].erase(type);
329 for every associated file extension.
428 // Read in the list of file extension types
434 // to the list of associated types for each file extension
435 const char *extension;
437 for (int i = 0; msg.FindString(kExtensionsField, i, &extension) == B_OK; i++) {
438 std::string extStr = PrepExtension(extension);
450 /*! \brief Strips any leading '.' chars from the given extension and
454 AssociatedTypes::PrepExtension(const char *extension) const
456 if (extension) {
458 while (extension[i] == '.')
460 return BPrivate::Storage::to_lower(&(extension[i]));
463 // empty string is considered an invalid extension