30 #define VARDIR "configs/" 34 "Warning:explicit path for executable will not be used for configs";
35 static const ERRCODE USAGE =
"Usage";
56 char *tessdata_prefix = getenv(
"TESSDATA_PREFIX");
61 }
else if (tessdata_prefix) {
69 DWORD length = GetModuleFileName(NULL, exe,
sizeof(exe));
70 if (length > 0 && length <
sizeof(exe)) {
71 _splitpath(exe, NULL, dir, NULL, NULL);
75 #if defined(TESSDATA_PREFIX) 79 #define _XSTR(a) _STR(a) 92 if (length >= 8 && strcmp(&
datadir[length - 8],
"tessdata") == 0)
94 else if (length >= 9 && strcmp(&
datadir[length - 9],
"tessdata/") == 0)
101 if ((strcmp(lastchar,
"/") != 0) && (strcmp(lastchar,
"\\") != 0))
void truncate_at(inT32 index)
const char * string() const
void main_setup(const char *argv0, const char *basename)
CCUtil::main_setup - set location of tessdata and name of image.