- Main Page
- Modules
- Classes

- Search for |

# Utilities for tokenizing strings

## Functions

INT32 | LEVEL_BASE::Int32FromString (const string &s)
UINT32 | LEVEL_BASE::Uint32FromString (const string &s)
UINT64 | LEVEL_BASE::Uint64FromString (const string &s)
FLT64 | LEVEL_BASE::FLT64FromString (const string &s)
INT | LEVEL_BASE::CharToHexDigit (CHAR c)
ADDRINT | LEVEL_BASE::AddrintFromString (const string &str)
string | LEVEL_BASE::ReadLine (istream &inputFile, UINT32 *lineNum)
UINT32 | LEVEL_BASE::Tokenize (const string &line, string *array, UINT32 n)

## Detailed Description

Availability:
  Mode: JIT & Probe
  O/S: Linux & Windows
  CPU: All

## Function Documentation

ADDRINT LEVEL_BASE::AddrintFromString | ( | const string & | str | ) |

| Convert a string to an ADDRINT.

INT LEVEL_BASE::CharToHexDigit | ( | CHAR | c | ) |

| Convert specified character to the corresponding hexadecimal digit.

Returns:
  integer in the interval [0, 15] or -1 upon failure

FLT64 LEVEL_BASE::FLT64FromString | ( | const string & | s | ) |

| Convert a string to a FLT64.

INT32 LEVEL_BASE::Int32FromString | ( | const string & | s | ) |

| Convert a string to an INT32.

string LEVEL_BASE::ReadLine | ( | istream & | inputFile,
|  | UINT32 * | lineNum
| ) |

| Read a line from file while maintaining a current line count skipping over blank and comment lines.

UINT32 LEVEL_BASE::Tokenize | ( | const string & | line,
|  | string * | array,
|  | UINT32 | n
| ) |

| Break a line into tokens separated by whitespace.

Returns:
  'array' contains the tokens

UINT32 LEVEL_BASE::Uint32FromString | ( | const string & | s | ) |

| Convert a string to a UINT32.

UINT64 LEVEL_BASE::Uint64FromString | ( | const string & | s | ) |

| Convert a string to a UINT64.