/dports/textproc/hs-pandoc-crossref/pandoc-crossref-0.3.12.0/_cabal_deps/pandoc-2.11.4/src/Text/Pandoc/ |
H A D | MIME.hs | 13 module Text.Pandoc.MIME ( MimeType, getMimeType, getMimeTypeDef, 25 getMimeType :: FilePath -> Maybe MimeType 26 getMimeType fp function 38 getMimeTypeDef = fromMaybe "application/octet-stream" . getMimeType 49 mediaCategory fp = getMimeType fp >>= listToMaybe . T.splitOn "/"
|
/dports/mail/phplist/phplist-3.6.6/public_html/lists/base/vendor/friendsofsymfony/rest-bundle/Tests/EventListener/ |
H A D | MimeTypeListenerTest.php | 38 $this->assertNull($request->getMimeType('jsonp')); 42 $this->assertNull($request->getMimeType('jsonp')); 50 $this->assertEquals('application/javascript+jsonp', $request->getMimeType('jsonp')); 71 $this->assertNull($request->getMimeType('soap')); 92 $this->assertEquals('application/soap+xml', $request->getMimeType('soap'));
|
/dports/textproc/hs-pandoc/pandoc-2.14.2/src/Text/Pandoc/ |
H A D | MIME.hs | 15 getMimeType, 30 getMimeType :: FilePath -> Maybe MimeType 31 getMimeType fp function 43 getMimeTypeDef = fromMaybe "application/octet-stream" . getMimeType 64 mediaCategory fp = getMimeType fp >>= listToMaybe . T.splitOn "/"
|
/dports/lang/spidermonkey60/firefox-60.9.0/mobile/android/app/src/test/java/org/mozilla/gecko/icons/ |
H A D | TestIconDescriptor.java | 22 Assert.assertNull(descriptor.getMimeType()); in testGenericIconDescriptor() 32 Assert.assertEquals(MIME_TYPE, descriptor.getMimeType()); in testFaviconIconDescriptor() 42 Assert.assertEquals(MIME_TYPE, descriptor.getMimeType()); in testTouchIconDescriptor() 52 Assert.assertNull(descriptor.getMimeType()); in testLookupIconDescriptor() 62 Assert.assertNull(descriptor.getMimeType()); in testBundledTileIconDescriptor()
|
/dports/www/otter-browser/otter-browser-1.0.03/src/ui/ |
H A D | TransferDialog.cpp | 39 const QString iconName(transfer->getMimeType().iconName()); in TransferDialog() 60 m_ui->typeTextLabelWidget->setText(transfer->getMimeType().comment()); in TransferDialog() 62 m_ui->openWithComboBoxWidget->setMimeType(transfer->getMimeType()); in TransferDialog() 101 HandlersManager::setHandler(m_transfer->getMimeType(), definition); in handleButtonClicked() 120 HandlersManager::setHandler(m_transfer->getMimeType(), definition); in handleButtonClicked() 158 HandlersManager::setHandler(m_transfer->getMimeType(), definition); in handleButtonClicked()
|
/dports/lang/spidermonkey60/firefox-60.9.0/mobile/android/thirdparty/ch/boye/httpclientandroidlib/entity/mime/content/ |
H A D | AbstractContentBody.java | 67 public String getMimeType() { in getMimeType() method in AbstractContentBody 68 return this.contentType.getMimeType(); in getMimeType() 72 final String mimeType = this.contentType.getMimeType(); in getMediaType() 82 final String mimeType = this.contentType.getMimeType(); in getSubType()
|
/dports/www/firefox-legacy/firefox-52.8.0esr/mobile/android/thirdparty/ch/boye/httpclientandroidlib/entity/mime/content/ |
H A D | AbstractContentBody.java | 67 public String getMimeType() { in getMimeType() method in AbstractContentBody 68 return this.contentType.getMimeType(); in getMimeType() 72 final String mimeType = this.contentType.getMimeType(); in getMediaType() 82 final String mimeType = this.contentType.getMimeType(); in getSubType()
|
/dports/devel/qtcreator/qt-creator-opensource-src-5.0.3/src/plugins/cpptools/ |
H A D | cppprojectfilecategorizer.cpp | 35 const GetMimeType &getMimeType) in ProjectFileCategorizer() argument 38 const ProjectFiles ambiguousHeaders = classifyFiles(filePaths, fileIsActive, getMimeType); in ProjectFileCategorizer() 58 const GetMimeType &getMimeType) in classifyFiles() argument 64 getMimeType in classifyFiles() 65 ? ProjectFile::classifyByMimeType(getMimeType(filePath)) in classifyFiles()
|
/dports/www/limesurvey/limesurvey/application/core/ |
H A D | LSFileHelper.php | 43 $mime = self::getMimeType($file); 62 public static function getMimeType($file,$magicFile=null,$checkExtension=true) function in LSFileHelper 64 $mimeType = parent::getMimeType($file,$magicFile,$checkExtension); 74 $mimeType = parent::getMimeType($file,$magicFile,$checkExtension);
|
/dports/www/mediawiki137/mediawiki-1.37.1/tests/phpunit/includes/api/format/ |
H A D | ApiFormatBaseTest.php | 35 ->onlyMethods( array_unique( array_merge( $methods, [ 'getMimeType', 'execute' ] ) ) ) 37 if ( !in_array( 'getMimeType', $methods, true ) ) { 38 $mock->method( 'getMimeType' )->willReturn( 'text/x-mock' ); 244 $printer = $this->getMockFormatter( null, 'mock', [ 'getMimeType' ] ); 248 $printer->method( 'getMimeType' )->willReturn( null ); 261 $printer = $this->getMockFormatter( null, 'mockfm', [ 'getMimeType' ] ); 265 $printer->method( 'getMimeType' )->willReturn( null );
|
/dports/www/mediawiki135/mediawiki-1.35.5/tests/phpunit/includes/api/format/ |
H A D | ApiFormatBaseTest.php | 35 ->setMethods( array_unique( array_merge( $methods, [ 'getMimeType', 'execute' ] ) ) ) 37 if ( !in_array( 'getMimeType', $methods, true ) ) { 38 $mock->method( 'getMimeType' )->willReturn( 'text/x-mock' ); 244 $printer = $this->getMockFormatter( null, 'mock', [ 'getMimeType' ] ); 248 $printer->method( 'getMimeType' )->willReturn( null ); 261 $printer = $this->getMockFormatter( null, 'mockfm', [ 'getMimeType' ] ); 265 $printer->method( 'getMimeType' )->willReturn( null );
|
/dports/www/mediawiki136/mediawiki-1.36.3/tests/phpunit/includes/api/format/ |
H A D | ApiFormatBaseTest.php | 35 ->setMethods( array_unique( array_merge( $methods, [ 'getMimeType', 'execute' ] ) ) ) 37 if ( !in_array( 'getMimeType', $methods, true ) ) { 38 $mock->method( 'getMimeType' )->willReturn( 'text/x-mock' ); 244 $printer = $this->getMockFormatter( null, 'mock', [ 'getMimeType' ] ); 248 $printer->method( 'getMimeType' )->willReturn( null ); 261 $printer = $this->getMockFormatter( null, 'mockfm', [ 'getMimeType' ] ); 265 $printer->method( 'getMimeType' )->willReturn( null );
|
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/test/jdk/java/awt/datatransfer/DataFlavor/ |
H A D | MimeTypeSerializationTest.java | 69 failed = !( longdf.getMimeType().equals(longdf2.getMimeType()) && in main() 70 shortdf.getMimeType().equals(shortdf2.getMimeType()) ); in main()
|
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/test/jdk/java/awt/datatransfer/DataFlavor/ |
H A D | MimeTypeSerializationTest.java | 69 failed = !( longdf.getMimeType().equals(longdf2.getMimeType()) && in main() 70 shortdf.getMimeType().equals(shortdf2.getMimeType()) ); in main()
|
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/test/jdk/java/awt/datatransfer/DataFlavor/ |
H A D | MimeTypeSerializationTest.java | 69 failed = !( longdf.getMimeType().equals(longdf2.getMimeType()) && in main() 70 shortdf.getMimeType().equals(shortdf2.getMimeType()) ); in main()
|
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/test/jdk/java/awt/datatransfer/DataFlavor/ |
H A D | MimeTypeSerializationTest.java | 69 failed = !( longdf.getMimeType().equals(longdf2.getMimeType()) && in main() 70 shortdf.getMimeType().equals(shortdf2.getMimeType()) ); in main()
|
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/test/jdk/java/awt/datatransfer/DataFlavor/ |
H A D | MimeTypeSerializationTest.java | 69 failed = !( longdf.getMimeType().equals(longdf2.getMimeType()) && in main() 70 shortdf.getMimeType().equals(shortdf2.getMimeType()) ); in main()
|
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/test/jdk/java/awt/datatransfer/DataFlavor/ |
H A D | MimeTypeSerializationTest.java | 69 failed = !( longdf.getMimeType().equals(longdf2.getMimeType()) && in main() 70 shortdf.getMimeType().equals(shortdf2.getMimeType()) ); in main()
|
/dports/java/openjdk17/jdk17u-jdk-17.0.1-12-1/test/jdk/java/awt/datatransfer/DataFlavor/ |
H A D | MimeTypeSerializationTest.java | 69 failed = !( longdf.getMimeType().equals(longdf2.getMimeType()) && in main() 70 shortdf.getMimeType().equals(shortdf2.getMimeType()) ); in main()
|
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/test/jdk/java/awt/datatransfer/DataFlavor/ |
H A D | MimeTypeSerializationTest.java | 69 failed = !( longdf.getMimeType().equals(longdf2.getMimeType()) && in main() 70 shortdf.getMimeType().equals(shortdf2.getMimeType()) ); in main()
|
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/jdk/test/java/awt/datatransfer/DataFlavor/ |
H A D | MimeTypeSerializationTest.java | 68 failed = !( longdf.getMimeType().equals(longdf2.getMimeType()) && in main() 69 shortdf.getMimeType().equals(shortdf2.getMimeType()) ); in main()
|
/dports/java/openjdk8-jre/jdk8u-jdk8u312-b07.1/jdk/test/java/awt/datatransfer/DataFlavor/ |
H A D | MimeTypeSerializationTest.java | 68 failed = !( longdf.getMimeType().equals(longdf2.getMimeType()) && in main() 69 shortdf.getMimeType().equals(shortdf2.getMimeType()) ); in main()
|
/dports/www/firefox-legacy/firefox-52.8.0esr/mobile/android/tests/background/junit4/src/org/mozilla/gecko/icons/ |
H A D | TestIconDescriptor.java | 22 Assert.assertNull(descriptor.getMimeType()); in testGenericIconDescriptor() 32 Assert.assertEquals(MIME_TYPE, descriptor.getMimeType()); in testFaviconIconDescriptor() 42 Assert.assertEquals(MIME_TYPE, descriptor.getMimeType()); in testTouchIconDescriptor() 52 Assert.assertNull(descriptor.getMimeType()); in testLookupIconDescriptor()
|
/dports/www/elgg/elgg-3.3.23/vendor/elgg/elgg/engine/tests/phpunit/unit/Elgg/Filesystem/ |
H A D | MimeTypeServiceUnitTest.php | 35 $this->assertEquals($expected, $this->service->getMimeType($filename)); 48 $this->service->getMimeType($this->normalizeTestFilePath('file_not_found.txt')); 60 $mimetype = $this->service->getMimeType($this->normalizeTestFilePath('dataroot/1/1/300x300.jpg')); 70 $this->assertNotEmpty($this->service->getMimeType($this->normalizeTestFilePath('.gitignore')));
|
/dports/net/megacmd/MEGAcmd-1.4.1_Win/sdk/tests/unit/ |
H A D | MegaApi_test.cpp | 194 TEST(MegaApi, getMimeType) in TEST() argument 204 … if (std::unique_ptr<char[]>{::mega::MegaApi::getMimeType("nosuch")} == nullptr) ++successCount; in TEST() 205 … if (std::unique_ptr<char[]>{::mega::MegaApi::getMimeType(nullptr)} == nullptr) ++successCount; in TEST() 206 …if (std::unique_ptr<char[]>{::mega::MegaApi::getMimeType("323")}.get() == string("text/h323")) ++s… in TEST() 207 …if (std::unique_ptr<char[]>{::mega::MegaApi::getMimeType(".323")}.get() == string("text/h323")) ++… in TEST() 208 …if (std::unique_ptr<char[]>{::mega::MegaApi::getMimeType("zip")}.get() == string("application/x-zi… in TEST() 209 …if (std::unique_ptr<char[]>{::mega::MegaApi::getMimeType(".zip")}.get() == string("application/x-z… in TEST()
|