| 232 | } |
| 233 | |
| 234 | bool TessBaseAPI::GetBoolVariable(const char *name, bool *value) const { |
| 235 | BoolParam *p = ParamUtils::FindParam<BoolParam>( |
| 236 | name, GlobalParams()->bool_params, tesseract_->params()->bool_params); |
| 237 | if (p == NULL) return false; |
| 238 | *value = (BOOL8)(*p); |
| 239 | return true; |
| 240 | } |
| 241 | |
| 242 | const char *TessBaseAPI::GetStringVariable(const char *name) const { |
| 243 | StringParam *p = ParamUtils::FindParam<StringParam>( |
no test coverage detected