src/lib/uri.h
branchv_0
changeset 32 e72546725c77
parent 31 c6527b45fbc2
child 33 c9a158da6c32
equal deleted inserted replaced
31:c6527b45fbc2 32:e72546725c77
    21 namespace ini {
    21 namespace ini {
    22 namespace lib {
    22 namespace lib {
    23 
    23 
    24 // TODO: these strings will become globally unique URIs (or IRIs) after moving to alt2xml and relative/unprefixed names should also work
    24 // TODO: these strings will become globally unique URIs (or IRIs) after moving to alt2xml and relative/unprefixed names should also work
    25 
    25 
       
    26 /** general options of the INI parser */
    26 namespace option {
    27 namespace option {
    27 static const char* TrimContinuingLines = "trim-continuing-lines";
    28 static const char* TrimContinuingLines = "trim-continuing-lines";
    28 static const char* AllowSections = "allow-sections";
    29 static const char* AllowSections = "allow-sections";
    29 static const char* AllowSectionTags = "allow-section-tags";
    30 static const char* AllowSectionTags = "allow-section-tags";
    30 static const char* AllowSubKeys = "allow-sub-keys";
    31 static const char* AllowSubKeys = "allow-sub-keys";
    32 static const char* KeyValueSeparators = "key-value-separators";
    33 static const char* KeyValueSeparators = "key-value-separators";
    33 static const char* Quotes = "quotes";
    34 static const char* Quotes = "quotes";
    34 static const char* Dialect = "dialect";
    35 static const char* Dialect = "dialect";
    35 }
    36 }
    36 
    37 
       
    38 /** names of dynamically registered unescaping processors; they are also options */
    37 namespace unescaping {
    39 namespace unescaping {
    38 static const char* Basic = "unescape-basic";
    40 static const char* Basic = "unescape-basic";
    39 static const char* JavaProperties = "unescape-java-properties";
    41 static const char* JavaProperties = "unescape-java-properties";
    40 static const char* Backspace = "unescape-backspace";
    42 static const char* Backspace = "unescape-backspace";
    41 }
    43 }
    42 
    44 
       
    45 /** not options but a values of the dialect option */
    43 namespace dialect {
    46 namespace dialect {
    44 static const char* JavaProperties = "java-properties";
    47 static const char* JavaProperties = "java-properties";
    45 }
    48 }
    46 
    49 
       
    50 /** options for configuring the stage where events from the INI parser are converted to SAX events or DOM building */
    47 namespace xml {
    51 namespace xml {
    48 static const char* TreeWithNamespaces = "tree-with-namespaces";
    52 static const char* TreeWithNamespaces = "tree-with-namespaces";
    49 static const char* TreeStyle = "tree-style";
    53 static const char* TreeStyle = "tree-style";
       
    54 static const char* RootName = "root-name";
       
    55 static const char* EnableComments = "enable-comments";
       
    56 static const char* EnableWhitespace = "enable-whitespace";
       
    57 static const char* EnableLineNumbers = "enable-line-numbers";
       
    58 static const char* EnableEventNumbers = "enable-event-numbers";
       
    59 static const char* EnableSubKeys = "enable-sub-keys";
       
    60 // static const char* EnableSections = "enable-sections"; // TODO: flat XML without sections?
    50 
    61 
    51 static const char* XMLNS = "tag:globalcode.info,2018:alt2xml:TEMPORARY:ini"; // not an option and might change, just preliminary namespace
    62 static const char* XMLNS = "tag:globalcode.info,2018:alt2xml:TEMPORARY:ini"; // not an option and might change, just preliminary namespace
    52 }
    63 }
    53 
    64 
    54 }
    65 }