new BoostInfoParser()
A BoostInfoParser reads files in Boost's INFO format and constructs a
BoostInfoTree.
- Source:
Methods
(static) shlex_split(s) → {Array.<string>}
Similar to Python's shlex.split, split s into an array of strings which are
separated by whitespace, treating a string within quotes as a single entity
regardless of whitespace between the quotes. Also allow a backslash to escape
the next character.
Parameters:
Name | Type | Description |
---|---|---|
s |
string | The input string to split. |
- Source:
Returns:
An array of strings.
- Type
- Array.<string>
getRoot() → {BoostInfoTree}
Get the root tree of this parser.
- Source:
Returns:
The root BoostInfoTree.
- Type
- BoostInfoTree
read(fileName, input, inputName)
Add the contents of the file or input string to the root BoostInfoTree. There
are two forms:
read(fileName) reads fileName from the file system.
read(input, inputName) reads from the input, in which case inputName is used
only for log messages, etc.
Parameters:
Name | Type | Description |
---|---|---|
fileName |
string | The path to the INFO file. |
input |
string | The contents of the INFO file, with lines separated by "\n" or "\r\n". |
inputName |
string | Use with input for log messages, etc. |
- Source:
write(fileName)
Write the root tree of this BoostInfoParser as file in Boost's INFO format.
Parameters:
Name | Type | Description |
---|---|---|
fileName |
string | The output path. |
- Source: