MCPcopy Index your code
hub / github.com/MapServer/MapServer / msGetOutputFormatMimeList

Function msGetOutputFormatMimeList

mapoutput.c:850–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

848/************************************************************************/
849
850void msGetOutputFormatMimeList( mapObj *map, char **mime_list, int max_mime )
851
852{
853 int mime_count = 0, i;
854
855 msApplyDefaultOutputFormats(map);
856 for( i = 0; i < map->numoutputformats && mime_count < max_mime; i++ )
857 {
858 int j;
859
860 if( map->outputformatlist[i]->mimetype == NULL )
861 continue;
862
863 for( j = 0; j < mime_count; j++ )
864 {
865 if( strcasecmp(mime_list[j],
866 map->outputformatlist[i]->mimetype) == 0 )
867 break;
868 }
869
870 if( j == mime_count )
871 mime_list[mime_count++] = map->outputformatlist[i]->mimetype;
872 }
873
874 if( mime_count < max_mime )
875 mime_list[mime_count] = NULL;
876}
877
878/************************************************************************/
879/* msGetOutputFormatMimeList() */

Callers 1

Calls 2

strcasecmpFunction · 0.85

Tested by

no test coverage detected