readDefFile function
dynamic
readDefFile(
- String filePath, {
- String baseFolderPath = '',
- String readTextFileFunction(])? = readTextFile,
- String stringProcessingQuote = '\'',
- dynamic processQuotedStringFunction()? = processDefQuotedString,
- int levelSpaceCount = 4,
- bool hasImportCommands = true,
- String getImportedPathFunction()? = getImportedPath,
- List<
String> getImportedFilePathArrayFunction()? = getImportedFilePathArray,
Implementation
dynamic readDefFile(
String filePath,
{
String baseFolderPath = '',
String Function( String, [String] )? readTextFileFunction = readTextFile,
String stringProcessingQuote = '\'',
dynamic Function( String, ParsingContext, int )? processQuotedStringFunction = processDefQuotedString,
int levelSpaceCount = 4,
bool hasImportCommands = true,
String Function( String )? getImportedPathFunction = getImportedPath,
List<String> Function( String )? getImportedFilePathArrayFunction = getImportedFilePathArray
}
)
{
var text = readDefFileText(
filePath,
baseFolderPath: baseFolderPath,
readTextFileFunction: readTextFileFunction,
hasImportCommands: hasImportCommands,
getImportedPathFunction: getImportedPathFunction,
getImportedFilePathArrayFunction: getImportedFilePathArrayFunction
);
return (
parseDefText(
text,
baseFolderPath: baseFolderPath,
filePath: filePath,
readTextFileFunction: readTextFileFunction,
stringProcessingQuote: stringProcessingQuote,
processQuotedStringFunction: processQuotedStringFunction,
levelSpaceCount: levelSpaceCount
)
);
}