synchronize uri.h with relpipe-in-initable v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sun, 29 Nov 2020 10:50:16 +0100
branchv_0
changeset 32 193c643f4ffe
parent 31 bdf04cd91308
child 33 3b81fbeb5f3b
synchronize uri.h with relpipe-in-initable
src/lib/uri.h
--- a/src/lib/uri.h	Sat Nov 28 23:49:05 2020 +0100
+++ b/src/lib/uri.h	Sun Nov 29 10:50:16 2020 +0100
@@ -23,6 +23,7 @@
 
 // TODO: these strings will become globally unique URIs (or IRIs) after moving to alt2xml and relative/unprefixed names should also work
 
+/** general options of the INI parser */
 namespace option {
 static const char* TrimContinuingLines = "trim-continuing-lines";
 static const char* AllowSections = "allow-sections";
@@ -34,16 +35,33 @@
 static const char* Dialect = "dialect";
 }
 
+/** names of dynamically registered unescaping processors; they are also options */
 namespace unescaping {
 static const char* Basic = "unescape-basic";
 static const char* JavaProperties = "unescape-java-properties";
 static const char* Backspace = "unescape-backspace";
 }
 
+/** not options but a values of the dialect option */
 namespace dialect {
 static const char* JavaProperties = "java-properties";
 }
 
+/** options for configuring the stage where events from the INI parser are converted to SAX events or DOM building */
+namespace xml {
+static const char* TreeWithNamespaces = "tree-with-namespaces";
+static const char* TreeStyle = "tree-style";
+static const char* RootName = "root-name";
+static const char* EnableComments = "enable-comments";
+static const char* EnableWhitespace = "enable-whitespace";
+static const char* EnableLineNumbers = "enable-line-numbers";
+static const char* EnableEventNumbers = "enable-event-numbers";
+static const char* EnableSubKeys = "enable-sub-keys";
+// static const char* EnableSections = "enable-sections"; // TODO: flat XML without sections?
+
+static const char* XMLNS = "tag:globalcode.info,2018:alt2xml:TEMPORARY:ini"; // not an option and might change, just preliminary namespace
+}
+
 }
 }
 }