ParseHelper Class Reference

#include <ruleparser.h>

Static Public Member Functions

static MAXON_METHOD Result< void > ConvertTextToLines (const Block< const Char > &in, const StringDecodingRef &strDecoding, BaseArray< String > &out, Bool allowBackSlashToJoinNextLine)
 
static MAXON_METHOD Result< void > ConvertTextToLines (const BaseArray< Utf32Char > &in, BaseArray< String > &out, Bool allowBackSlashToJoinNextLine)
 

Private Member Functions

 MAXON_INTERFACE_NONVIRTUAL (ParseHelper, MAXON_REFERENCE_NONE, "net.maxon.interface.parsehelper")
 

Member Function Documentation

◆ MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( ParseHelper  ,
MAXON_REFERENCE_NONE  ,
"net.maxon.interface.parsehelper"   
)
private

◆ ConvertTextToLines() [1/2]

static MAXON_METHOD Result<void> ConvertTextToLines ( const Block< const Char > &  in,
const StringDecodingRef &  strDecoding,
BaseArray< String > &  out,
Bool  allowBackSlashToJoinNextLine 
)
static

Converts an ASCII file in memory into a array of strings with one string per line.

Parameters
[in]inArray holding the memory.
[out]outArray holding the lines of the file, will be initialized inside.
[in]allowBackSlashToJoinNextLineTrue if a backslash at the end of the line joins the next line to the current line. Leading spaces of the next line will be discarded.
Returns
OK on success.

◆ ConvertTextToLines() [2/2]

static MAXON_METHOD Result<void> ConvertTextToLines ( const BaseArray< Utf32Char > &  in,
BaseArray< String > &  out,
Bool  allowBackSlashToJoinNextLine 
)
static

Converts an Utf32 array in memory into a array of strings with one string per line.

Parameters
[in]inArray holding the data.
[out]outArray holding the lines of the file, will be initialized inside.
[in]allowBackSlashToJoinNextLineTrue if a backslash at the end of the line joins the next line to the current line. Leading spaces of the next line will be discarded.
Returns
OK on success.