Logo GenPRES

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

getData name posl pick

Full Usage: getData name posl pick

Parameters:
    name : 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.

name : 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

isDecimalFormat s

Full Usage: isDecimalFormat s

Parameters:
    s : string

Returns: bool

Check wether a string is a decimal format.

s : string
Returns: bool

parseValue st sf s

Full Usage: parseValue st sf s

Parameters:
    st : 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

st : string

String that is 'N'if numerical

sf : string

The format of the numerical string

s : string

The string to format

Returns: string

splitRecord pl s

Full Usage: splitRecord pl s

Parameters:
    pl : 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.

pl : int list

The given positions.

s : string

The string

Returns: string array

Type something to start searching.