Parser Module
Splits each line of a G-Standaard file into fields of fixed length and inserts the decimal point in the text of a numeric field.
Functions and values
| Function or value |
Description
|
Full Usage:
getData name posl pick
Parameters:
string
-
The name of the file.
posl : int list
-
The positions of the fields.
pick : int seq
-
The fields to pick.
Returns: string array array
|
Get the data from a file.
|
Full Usage:
isDecimalFormat s
Parameters:
string
Returns: bool
|
Check wether a string is a decimal format.
|
Full Usage:
parseValue st sf s
Parameters:
string
-
String that is 'N'if numerical
sf : string
-
The format of the numerical string
s : string
-
The string to format
Returns: string
|
Parse a string to a decimal a return as a string
|
Full Usage:
splitRecord pl s
Parameters:
int list
-
The given positions.
s : string
-
The string
Returns: string array
|
Split a string into an array of strings, based on the given positions.
|
GenPRES