| 771 | /************************************************************************/ |
| 772 | |
| 773 | const char *msGetOutputFormatOption( outputFormatObj *format, |
| 774 | const char *optionkey, |
| 775 | const char *defaultresult ) |
| 776 | |
| 777 | { |
| 778 | int i, len = strlen(optionkey); |
| 779 | |
| 780 | for( i = 0; i < format->numformatoptions; i++ ) |
| 781 | { |
| 782 | if( strncasecmp(format->formatoptions[i],optionkey,len) == 0 |
| 783 | && format->formatoptions[i][len] == '=' ) |
| 784 | return format->formatoptions[i] + len + 1; |
| 785 | } |
| 786 | |
| 787 | return defaultresult; |
| 788 | } |
| 789 | |
| 790 | /************************************************************************/ |
| 791 | /* msSetOutputFormatOption() */ |
no test coverage detected