tesseract
5.0.0-alpha-619-ge9db
|
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdarg>
#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <limits>
#include "scanutils.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 54 of file scanutils.cpp.
enum Flags |
enum Ranks |
Enumerator | |
---|---|
RANK_CHAR | |
RANK_SHORT | |
RANK_INT | |
RANK_LONG | |
RANK_LONGLONG | |
RANK_PTR |
Definition at line 38 of file scanutils.cpp.
|
inline |
Definition at line 61 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 181 of file scanutils.cpp.
enum Ranks kIntMaxRank = RANK_LONGLONG |
Definition at line 50 of file scanutils.cpp.
enum Ranks kMaxRank = RANK_LONGLONG |
Definition at line 48 of file scanutils.cpp.
Definition at line 47 of file scanutils.cpp.
Definition at line 52 of file scanutils.cpp.
Definition at line 51 of file scanutils.cpp.