tesseract
3.05.02
|
#include <ctype.h>
#include <math.h>
#include <stdarg.h>
#include <stddef.h>
#include <string.h>
#include <limits.h>
#include <stdio.h>
#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 = INT_MAX } |
enum | Bail { BAIL_NONE = 0, BAIL_EOF, BAIL_ERR } |
Functions | |
size_t | LongBit () |
uintmax_t | streamtoumax (FILE *s, int base) |
double | streamtofloat (FILE *s) |
double | strtofloat (const char *s) |
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 63 of file scanutils.cpp.
enum Flags |
Enumerator | |
---|---|
FL_SPLAT | |
FL_INV | |
FL_WIDTH | |
FL_MINUS |
Definition at line 40 of file scanutils.cpp.
enum Ranks |
Enumerator | |
---|---|
RANK_CHAR | |
RANK_SHORT | |
RANK_INT | |
RANK_LONG | |
RANK_LONGLONG | |
RANK_PTR |
Definition at line 47 of file scanutils.cpp.
|
inline |
Definition at line 70 of file scanutils.cpp.
double streamtofloat | ( | FILE * | s | ) |
Definition at line 146 of file scanutils.cpp.
uintmax_t streamtoumax | ( | FILE * | s, |
int | base | ||
) |
Definition at line 105 of file scanutils.cpp.
double strtofloat | ( | const char * | s | ) |
Definition at line 193 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 228 of file scanutils.cpp.
enum Ranks kIntMaxRank = RANK_LONGLONG |
Definition at line 59 of file scanutils.cpp.
enum Ranks kMaxRank = RANK_LONGLONG |
Definition at line 57 of file scanutils.cpp.
Definition at line 56 of file scanutils.cpp.
Definition at line 61 of file scanutils.cpp.
Definition at line 60 of file scanutils.cpp.