relpipe-data/examples/ini-complex.full.tabular
branchv_0
changeset 329 5bc2bb8b7946
equal deleted inserted replaced
328:cc60c8dd7924 329:5bc2bb8b7946
       
     1 ini:
       
     2  ╭────────────────┬─────────────────┬──────────────────┬─────────────────────┬──────────────────┬──────────────────────────────────────────────────────────┬─────────────────────────────────────────────────────────────────────────────────┬─────────────────────╮
       
     3  │ line (integer) │ event (integer) │ section (string) │ key        (string) │ sub_key (string) │ value                                           (string) │ comment                                                                (string) │ whitespace (string) │
       
     4  ├────────────────┼─────────────────┼──────────────────┼─────────────────────┼──────────────────┼──────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────┼─────────────────────┤
       
     5  │              1 │               1 │                  │ global              │                  │ value                                                    │                                                                                 │                     │
       
     6  │              2 │               2 │                  │                     │                  │                                                          │                                                                                 │ ↲                   │
       
     7  │              4 │               4 │ section          │                     │                  │                                                          │ section tags are currently supported by the parser (do not generate error)      │                     │
       
     8  │              5 │               5 │ section          │                     │                  │                                                          │ but do not generate any output                                                  │                     │
       
     9  │              6 │               6 │ section          │ section-tag-support │                  │ partial                                                  │                                                                                 │                     │
       
    10  │              7 │               7 │ section          │                     │                  │                                                          │                                                                                 │ ↲                   │
       
    11  │              9 │               9 │ quoting          │                     │                  │                                                          │                                                                                 │ ↲                   │
       
    12  │             10 │              10 │ quoting          │ quoted              │                  │ some text in quotes                                      │                                                                                 │                     │
       
    13  │             11 │              11 │ quoting          │ apostrophed         │                  │ some text in apostrophes                                 │                                                                                 │                     │
       
    14  │             12 │              12 │ quoting          │                     │                  │                                                          │                                                                                 │ ↲                   │
       
    15  │             13 │              13 │ quoting          │ unquoted            │                  │ values are trimmed                                       │                                                                                 │                     │
       
    16  │             14 │              14 │ quoting          │ we-need             │                  │     quotes or apostrophes                                │                                                                                 │                     │
       
    17  │             15 │              15 │ quoting          │ to-keep             │                  │ the leading/trailing whitespace                          │                                                                                 │                     │
       
    18  │             16 │              16 │ quoting          │                     │                  │                                                          │                                                                                 │ ↲                   │
       
    19  │             18 │              18 │ multiline        │                     │                  │                                                          │                                                                                 │ ↲                   │
       
    20  │             19 │              19 │ multiline        │ quoted              │                  │ first line↲second line                                   │                                                                                 │                     │
       
    21  │             21 │              20 │ multiline        │                     │                  │                                                          │                                                                                 │ ↲                   │
       
    22  │             22 │              21 │ multiline        │ apostrophed         │                  │ first line↲second line                                   │                                                                                 │                     │
       
    23  │             24 │              22 │ multiline        │                     │                  │                                                          │                                                                                 │ ↲                   │
       
    24  │             25 │              23 │ multiline        │                     │                  │                                                          │ unlike quoted/apostrophed strings, there is no line end inside the value:       │                     │
       
    25  │             26 │              24 │ multiline        │ backslashed         │                  │ first line continues here                                │                                                                                 │                     │
       
    26  │             28 │              25 │ multiline        │                     │                  │                                                          │                                                                                 │ ↲                   │
       
    27  │             29 │              26 │ comments         │                     │                  │                                                          │ we can comment also secions                                                     │                     │
       
    28  │             30 │              27 │ comments         │                     │                  │                                                          │                                                                                 │ ↲                   │
       
    29  │             31 │              28 │ comments         │ ini                 │                  │ true                                                     │ and even values                                                                 │                     │
       
    30  │             32 │              29 │ comments         │ unix                │                  │ true                                                     │                                                                                 │                     │
       
    31  │             33 │              30 │ comments         │                     │                  │                                                          │                                                                                 │ ↲                   │
       
    32  │             34 │              31 │ comments         │                     │                  │                                                          │ classic INI comment                                                             │                     │
       
    33  │             35 │              32 │ comments         │                     │                  │                                                          │ unix-style comments are also supported                                          │                     │
       
    34  │             36 │              33 │ comments         │                     │                  │                                                          │                                                                                 │ ↲                   │
       
    35  │             37 │              34 │ comments         │ but                 │                  │ be aware that ; this is part of the value, not a comment │                                                                                 │                     │
       
    36  │             38 │              35 │ comments         │                     │                  │                                                          │ we need '' or "" to put comment on the same line as the value                   │                     │
       
    37  │             39 │              36 │ comments         │                     │                  │                                                          │                                                                                 │ ↲                   │
       
    38  │             41 │              38 │ subkeys          │                     │                  │                                                          │                                                                                 │ ↲                   │
       
    39  │             42 │              39 │ subkeys          │                     │                  │                                                          │ we may specify subkeys in [] brackets:                                          │                     │
       
    40  │             43 │              40 │ subkeys          │ a                   │ x                │ AX                                                       │                                                                                 │                     │
       
    41  │             44 │              41 │ subkeys          │ a                   │ y                │ AY                                                       │                                                                                 │                     │
       
    42  │             45 │              42 │ subkeys          │                     │                  │                                                          │                                                                                 │ ↲                   │
       
    43  │             46 │              43 │ subkeys          │                     │                  │                                                          │ because this feature is quite uncommon, it is disabled by default               │                     │
       
    44  │             47 │              44 │ subkeys          │                     │                  │                                                          │ and whole key+subkey becomes a key                                              │                     │
       
    45  │             48 │              45 │ subkeys          │                     │                  │                                                          │ but we can turn on the subkey support by the CLI option: --enable-sub-keys true │                     │
       
    46  │             49 │              46 │ subkeys          │                     │                  │                                                          │ and get separete key and sub_key attributes on the output                       │                     │
       
    47  │             50 │              47 │ subkeys          │                     │                  │                                                          │                                                                                 │ ↲                   │
       
    48  │             52 │              49 │ escaping         │                     │                  │                                                          │                                                                                 │ ↲                   │
       
    49  │             53 │              50 │ escaping         │ escaped-multiline   │                  │ first line↲second line                                   │                                                                                 │                     │
       
    50  │             54 │              51 │ escaping         │ backslash           │                  │ back\slash                                               │                                                                                 │                     │
       
    51  │             55 │              52 │ escaping         │ quotes              │                  │ quoted text with "quotes" inside                         │                                                                                 │                     │
       
    52  │             56 │              53 │ escaping         │ tab                 │                  │ how↹very                                                 │                                                                                 │                     │
       
    53  │             57 │              54 │ escaping         │                     │                  │                                                          │                                                                                 │ ↲↲                  │
       
    54  ╰────────────────┴─────────────────┴──────────────────┴─────────────────────┴──────────────────┴──────────────────────────────────────────────────────────┴─────────────────────────────────────────────────────────────────────────────────┴─────────────────────╯
       
    55 Record count: 49