| 196 | } |
| 197 | |
| 198 | TESS_API BOOL TESS_CALL TessBaseAPIGetBoolVariable(const TessBaseAPI* handle, const char* name, BOOL* value) |
| 199 | { |
| 200 | bool boolValue; |
| 201 | if (handle->GetBoolVariable(name, &boolValue)) |
| 202 | { |
| 203 | *value = boolValue ? TRUE : FALSE; |
| 204 | return TRUE; |
| 205 | } |
| 206 | else |
| 207 | { |
| 208 | return FALSE; |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | TESS_API BOOL TESS_CALL TessBaseAPIGetDoubleVariable(const TessBaseAPI* handle, const char* name, double* value) |
| 213 | { |
nothing calls this directly
no test coverage detected