| 878 | */ |
| 879 | |
| 880 | bool CPLStringList::FetchBool(const char *pszKey, bool bDefault) const |
| 881 | |
| 882 | { |
| 883 | const char *pszValue = FetchNameValue(pszKey); |
| 884 | |
| 885 | if (pszValue == nullptr) |
| 886 | return bDefault; |
| 887 | |
| 888 | return CPLTestBool(pszValue); |
| 889 | } |
| 890 | |
| 891 | /************************************************************************/ |
| 892 | /* FetchBoolean() */ |
no test coverage detected