Parser API for the well formatted documents.
FormattedParser
01 Syntax
Microsoft.VisualBasic.Text.Parser.FormattedParser
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| FlagSplit | 2 | String collection tokens by a certain delimiter string element. |
| CrossFields | 1 | Example as: |
| FieldParser | 1 | Parsing a line of string into several fields fragments based on the fields length. |
| ReadHead | 1 | Parsing the document head section from the document. |
| UntilBlank | 1 |
03 Members
FlagSplit(
StreamReader, Func(Of String, Boolean))String collection tokens by a certain delimiter string element.
Parameters
| Name | Type | Description |
|---|---|---|
s | StreamReader | - |
isFlag | Func(Of String, Boolean) | - |
FlagSplit(
IEnumerable(Of String), Func(Of String, Boolean))String collection tokens by a certain delimiter string element.
Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of String) | - |
isFlag | Func(Of String, Boolean) | - |
CrossFields(
String)Example as: ------- ------ ----- ------- ------ ----- ---- -- -------- -----------
Parameters
| Name | Type | Description |
|---|---|---|
s | String | - |
FieldParser(
String, Int32())Parsing a line of string into several fields fragments based on the fields length. (假设表格之中的每一个字段都是等长的话, 则可以使用这个函数来进行解析)
Parameters
| Name | Type | Description |
|---|---|---|
s | String | The input text line. |
fieldLength | Int32() | The text length of each field property value. |
Parsing the document head section from the document.
Parameters
| Name | Type | Description |
|---|---|---|
buf | String() | - |
offset | Int32 | This function will returns the new offset value from this reference parameter. (从这里向调用者返回偏移量) |
__isHead | DoContinute | Condition for continue move the parser pointer to the next line. |
UntilBlank(
String)