GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > XLX / V10-0-2
Constituent: parser     Tag: linux-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 int | strtobin (int optns, const char *string, unsigned int len, void *value) |
| Convert a string to binary. | |
| int | XLX_isEnabled (const char **attribute, int *enabled) |
| Reads the attribute list and sets enabled accordingly. | |
| int | XLX_getAttribute (const char **attribute, const char *name, int *value) |
| Find a named attribute in an attribute list. | |
| int | XLX_strtoi (const char *string, unsigned int len, int *value) |
| Convert a string to a signed 32-bit integer. | |
| int | XLX_strtou (const char *string, unsigned int len, unsigned int *value) |
| Convert a string to an unsigned 32-bit integer. | |
| int | XLX_strtoll (const char *string, unsigned int len, long long *value) |
| Convert a string to a signed 64-bit integer. | |
| int | XLX_strtoull (const char *string, unsigned int len, unsigned long long *value) |
| Convert a string to an unsigned 64-bit integer. | |
| int | XLX_getLineNum (XLX_state *state) |
| Get the current line number. | |
| void | XLX_valError (XLX_state *state, const char *func, const char *string, unsigned int 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. | |
| int | XLX_ischar (const char *string, unsigned int len) |
| Test a string for valid characters. | |
|
||||||||||||||||||||
|
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.
|
|
|
Get the current line number. This routine obtains the current line number in the file being parsed.
|
|
||||||||||||
|
Test a string for valid characters. Checks that the string has valid graphic 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.
|
1.4.4