30 #define VARDIR "configs/"
34 "Warning:explicit path for executable will not be used for configs";
35 static const ERRCODE USAGE =
"Usage";
59 if (getenv(
"TESSDATA_PREFIX")) {
60 datadir = getenv(
"TESSDATA_PREFIX");
62 #ifdef TESSDATA_PREFIX
64 #define _XSTR(a) _STR(a)
78 if (length >= 8 && strcmp(&
datadir[length - 8],
"tessdata") == 0)
80 else if (length >= 9 && strcmp(&
datadir[length - 9],
"tessdata/") == 0)
87 if ((strcmp(lastchar,
"/") != 0) && (strcmp(lastchar,
"\\") != 0))
void truncate_at(inT32 index)
void main_setup(const char *argv0, const char *basename)
CCUtil::main_setup - set location of tessdata and name of image.
const char * string() const