GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > XLX / V9-0-0
Constituent: parser     Tag: sun-gcc
#include "XLX_p.h"
#include "EXPAT/expat.h"
#include "stdlib.h"
#include "stdio.h"
#include "string.h"
#include "ctype.h"
Include dependency graph for util.c:
Functions | |
static unsigned | strtobin (int optns, const char *string, unsigned len, void *value) |
Convert a string to binary. | |
unsigned | XLX_isEnabled (const char **attribute, int *enabled) |
Reads the attribute list and sets enabled accordingly. | |
unsigned | XLX_getAttribute (const char **attribute, const char *name, int *value) |
Find a named attribute in an attribute list. | |
unsigned | XLX_strtoi (const char *string, unsigned len, int *value) |
Convert a string to a signed 32-bit integer. | |
unsigned | XLX_strtou (const char *string, unsigned len, unsigned *value) |
Convert a string to an unsigned 32-bit integer. | |
unsigned | XLX_strtoll (const char *string, unsigned len, long long *value) |
Convert a string to a signed 64-bit integer. | |
unsigned | XLX_strtoull (const char *string, unsigned len, unsigned long long *value) |
Convert a string to an unsigned 64-bit integer. | |
void | XLX_valError (XLX_state *state, const char *func, const char *string, unsigned len) |
Report value string to be in error. | |
void | XLX_attrError (XLX_state *state, const char *func, const char *name) |
Report missing attribute error. | |
void | XLX_attrValError (XLX_state *state, const char *func, const char *name) |
Report invalid attribute value error. | |
void | XLX_dispFileName (XLX_state *state, const char *func) |
Display the name of the current file being parsed. | |
unsigned | XLX_ischar (const char *string, unsigned len) |
Test a string to see if it is a valid register wide character element. |
|
Convert a string to binary. This routine converts a decimal or hexadecimal string to an integer. By default the string must be unsigned and the integer is 32-bit. Options allow the string to be signed, and the integer to be 64-bit.
|
|
Report missing attribute error. This routine displays the name of the missing attribute, along with the line number in and the name of the file being parsed.
|
|
Report invalid attribute value error. This routine displays the name of the attribute, along with the line number in and the name of the file being parsed.
|
|
Display the name of the current file being parsed. This routine is used when reporting errors during the parsing.
|
|
Find a named attribute in an attribute list. This routine looks for the attribute in the attribute list and returns its associated value (signed decimal or hexadecimal string) converted to an integer.
|
|
Test a string to see if it is a valid register wide character element. Checks that the string has valid characters after any leading whitespace and before the start of the next tag.
|
|
Reads the attribute list and sets enabled accordingly.
|
|
Convert a string to a signed 32-bit integer.
|
|
Convert a string to a signed 64-bit integer.
|
|
Convert a string to an unsigned 32-bit integer.
|
|
Convert a string to an unsigned 64-bit integer.
|
|
Report value string to be in error. This routine displays the contents of the string, along with the line number in and the name of the file being parsed.
|