Utils - Utility functions module
[Non-specific low-level tools level]

Various general purpose utility functions module (former xcbase module). More...

Defines

#define LEXICAL_FILE_COMMENT   '#'
 Character which, when it starts a line, introduces a comment.

Functions

GString * g_string_CleanSpaces (GString *string, int(*is_space)(int))
int readFileEntry (FILE *file, GString *string)

Detailed Description

Various general purpose utility functions module (former xcbase module).

SlpTK Library 0.6.0

Required header
<utils.h>
Author:
Jean-Cédric Chappelier (creation on 11.02.1997)

Antonin Merçay (revision on 19.11.2004)

Date:
2 March 2005
Version:
0.6.0

Function Documentation

GString * g_string_CleanSpaces ( GString *  string,
int(*)(int)  is_space 
)

Clean a character string, i.e. remove the white spaces from both ends of the string and reduce to one space character (' ', 32) any other white char succession.

Parameters:
[in] string The string to treat
[in] is_space The function that determines which characters are white spaces
Returns:
The resulting string
Former(s) function(s):
Clean_Spaces (former XCString module)

int readFileEntry ( FILE *  file,
GString *  string 
)

Read a lexical entry (line) from a textual file. The commentary lines, i.e. that start with one LEXICAL_FILE_COMMENT character, are skipped.

Parameters:
[in] file The file to read
[in] string The string where to store the lexical entry
Returns:
The last read character
Former(s) function(s):
Fichier_Importe_Une_Entree_Lexico (former arbrelex module)


Generated on Thu Mar 22 17:46:31 2007 for SlpTk by  doxygen 1.4.7