|
tesseract
3.03
|
Go to the source code of this file.
Functions | |
| int | tessopt (inT32 argc, char *argv[], const char *arglist) |
Variables | |
| int | tessoptind |
| char * | tessoptarg |
Definition at line 33 of file tessopt.cpp.
{
const char *arg; //arg char
if (tessoptind == 0)
tessoptind = 1;
if (tessoptind < argc && argv[tessoptind][0] == '-') {
arg = strchr (arglist, argv[tessoptind][1]);
if (arg == NULL || *arg == ':')
return '?'; //dud option
tessoptind++;
tessoptarg = argv[tessoptind];
if (arg[1] == ':') {
if (argv[tessoptind - 1][2] != '\0')
//immediately after
tessoptarg = argv[tessoptind - 1] + 2;
else
tessoptind++;
}
return *arg;
}
else
return EOF;
}
| char* tessoptarg |
Definition at line 25 of file tessopt.cpp.
| int tessoptind |
Definition at line 24 of file tessopt.cpp.