tesseract
4.0.0-1-g2a2b
|
#include <cctype>
#include <cmath>
#include <cstdarg>
#include <cstddef>
#include <cstring>
#include <climits>
#include <cstdio>
#include <limits>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "scanutils.h"
#include "tprintf.h"
Go to the source code of this file.
Enumerations | |
enum | Flags { FL_SPLAT = 0x01, FL_INV = 0x02, FL_WIDTH = 0x04, FL_MINUS = 0x08 } |
enum | Ranks { RANK_CHAR = -2, RANK_SHORT = -1, RANK_INT = 0, RANK_LONG = 1, RANK_LONGLONG = 2, RANK_PTR = std::numeric_limits<int>::max() } |
enum | Bail { BAIL_NONE = 0, BAIL_EOF, BAIL_ERR } |
Functions | |
size_t | LongBit () |
int | tfscanf (FILE *stream, const char *format,...) |
Variables | |
enum Ranks | kMinRank = RANK_CHAR |
enum Ranks | kMaxRank = RANK_LONGLONG |
enum Ranks | kIntMaxRank = RANK_LONGLONG |
enum Ranks | kSizeTRank = RANK_LONG |
enum Ranks | kPtrDiffRank = RANK_LONG |
enum Bail |
Enumerator | |
---|---|
BAIL_NONE | |
BAIL_EOF | |
BAIL_ERR |
Definition at line 64 of file scanutils.cpp.
enum Flags |
Enumerator | |
---|---|
FL_SPLAT | |
FL_INV | |
FL_WIDTH | |
FL_MINUS |
Definition at line 41 of file scanutils.cpp.
enum Ranks |
Enumerator | |
---|---|
RANK_CHAR | |
RANK_SHORT | |
RANK_INT | |
RANK_LONG | |
RANK_LONGLONG | |
RANK_PTR |
Definition at line 48 of file scanutils.cpp.
|
inline |
Definition at line 71 of file scanutils.cpp.
int tfscanf | ( | FILE * | stream, |
const char * | format, | ||
... | |||
) |
fscanf variant to ensure correct reading regardless of locale.
tfscanf parse a file stream according to the given format. See the fscanf manpage for more information, as this function attempts to mimic its behavior.
Definition at line 192 of file scanutils.cpp.
enum Ranks kIntMaxRank = RANK_LONGLONG |
Definition at line 60 of file scanutils.cpp.
enum Ranks kMaxRank = RANK_LONGLONG |
Definition at line 58 of file scanutils.cpp.
Definition at line 57 of file scanutils.cpp.
Definition at line 62 of file scanutils.cpp.
Definition at line 61 of file scanutils.cpp.