ParseHelper Class Reference

#include <ruleparser.h>

静态公共成员函数

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)

私有成员函数

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

成员函数文档编制

◆  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.

参数
[in] in Array holding the memory.
[out] out Array holding the lines of the file, will be initialized inside.
[in] allowBackSlashToJoinNextLine True 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.
返回
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.

参数
[in] in Array holding the data.
[out] out Array holding the lines of the file, will be initialized inside.
[in] allowBackSlashToJoinNextLine True 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.
返回
OK on success.