LAL  7.5.0.1-bede9b2
StringInput.h File Reference

Prototypes

void LALCreateTokenList (LALStatus *status, TokenList **list, const CHAR *string, const CHAR *delimiters)
 
void LALDestroyTokenList (LALStatus *status, TokenList **list)
 
int XLALCreateTokenList (TokenList **list, const CHAR *string, const CHAR *delimiters)
 Split given input string into a list of 'tokens' separated by any of the characters given in 'delimiters'. More...
 
void XLALDestroyTokenList (TokenList *list)
 See StringToken.c for documentation. More...
 
void LALStringToU2 (LALStatus *status, UINT2 *value, const CHAR *string, CHAR **endptr)
 
void LALStringToU4 (LALStatus *status, UINT4 *value, const CHAR *string, CHAR **endptr)
 
void LALStringToU8 (LALStatus *status, UINT8 *value, const CHAR *string, CHAR **endptr)
 
void LALStringToI2 (LALStatus *status, INT2 *value, const CHAR *string, CHAR **endptr)
 
void LALStringToI4 (LALStatus *status, INT4 *value, const CHAR *string, CHAR **endptr)
 
void LALStringToI8 (LALStatus *status, INT8 *value, const CHAR *string, CHAR **endptr)
 
void LALStringToS (LALStatus *status, REAL4 *value, const CHAR *string, CHAR **endptr)
 
void LALStringToD (LALStatus *status, REAL8 *value, const CHAR *string, CHAR **endptr)
 
void LALStringToC (LALStatus *status, COMPLEX8 *value, const CHAR *string, CHAR **endptr)
 
void LALStringToZ (LALStatus *status, COMPLEX16 *value, const CHAR *string, CHAR **endptr)
 

Go to the source code of this file.

Data Structures

struct  TokenList
 This structure stores a number of null-terminated strings of arbitrary length. More...
 

Macros

Error Codes
#define STRINGINPUTH_ENUL   1
 Unexpected null pointer in arguments. More...
 
#define STRINGINPUTH_EOUT   2
 Output handle points to a non-null pointer. More...
 
#define STRINGINPUTH_EMEM   3
 Memory allocation error. More...
 

Function Documentation

◆ LALCreateTokenList()

void LALCreateTokenList ( LALStatus stat,
TokenList **  list,
const CHAR string,
const CHAR delimiters 
)
Deprecated:
Use XLALCreateTokenList() instead

Definition at line 76 of file StringToken.c.

◆ LALDestroyTokenList()

void LALDestroyTokenList ( LALStatus stat,
TokenList **  list 
)
Deprecated:
Use XLALDestroyTokenList() instead

Definition at line 241 of file StringToken.c.

◆ XLALCreateTokenList()

int XLALCreateTokenList ( TokenList **  list,
const CHAR string,
const CHAR delimiters 
)

Split given input string into a list of 'tokens' separated by any of the characters given in 'delimiters'.

Parameters
[out]listlist of tokens
[in]stringstring to split into tokens
[in]delimitersset of token-delimiter characters

Definition at line 168 of file StringToken.c.

◆ XLALDestroyTokenList()

void XLALDestroyTokenList ( TokenList list)

See StringToken.c for documentation.

Definition at line 262 of file StringToken.c.

◆ LALStringToU2()

void LALStringToU2 ( LALStatus status,
UINT2 value,
const CHAR string,
CHAR **  endptr 
)

Definition at line 198 of file StringConvert.c.

◆ LALStringToU4()

void LALStringToU4 ( LALStatus status,
UINT4 value,
const CHAR string,
CHAR **  endptr 
)

Definition at line 232 of file StringConvert.c.

◆ LALStringToU8()

void LALStringToU8 ( LALStatus status,
UINT8 value,
const CHAR string,
CHAR **  endptr 
)

Definition at line 266 of file StringConvert.c.

◆ LALStringToI2()

void LALStringToI2 ( LALStatus status,
INT2 value,
const CHAR string,
CHAR **  endptr 
)

Definition at line 297 of file StringConvert.c.

◆ LALStringToI4()

void LALStringToI4 ( LALStatus status,
INT4 value,
const CHAR string,
CHAR **  endptr 
)

Definition at line 338 of file StringConvert.c.

◆ LALStringToI8()

void LALStringToI8 ( LALStatus status,
INT8 value,
const CHAR string,
CHAR **  endptr 
)

Definition at line 379 of file StringConvert.c.

◆ LALStringToS()

void LALStringToS ( LALStatus status,
REAL4 value,
const CHAR string,
CHAR **  endptr 
)

Definition at line 420 of file StringConvert.c.

◆ LALStringToD()

void LALStringToD ( LALStatus status,
REAL8 value,
const CHAR string,
CHAR **  endptr 
)

Definition at line 455 of file StringConvert.c.

◆ LALStringToC()

void LALStringToC ( LALStatus status,
COMPLEX8 value,
const CHAR string,
CHAR **  endptr 
)

Definition at line 490 of file StringConvert.c.

◆ LALStringToZ()

void LALStringToZ ( LALStatus status,
COMPLEX16 value,
const CHAR string,
CHAR **  endptr 
)

Definition at line 525 of file StringConvert.c.