Flags¶
Details¶
- class Xmlb.BuilderCompileFlags(value)¶
Bases:
GLib.Flags
The flags for converting to XML.
- NONE = 0¶
No extra flags to use
- WATCH_BLOB = 16¶
Watch the XMLB file for changes
- NATIVE_LANGS = 2¶
Only load native languages
- IGNORE_GUID = 32¶
Ignore the cache GUID value
- IGNORE_INVALID = 4¶
Ignore invalid files without an error
- SINGLE_ROOT = 64¶
Require at most one root node
- SINGLE_LANG = 8¶
Only store a single language
- class Xmlb.BuilderNodeFlags(value)¶
Bases:
GLib.Flags
The flags used when building a node.
- NONE = 0¶
No extra flags to use
- IGNORE = 1¶
Do not include this node in the silo
- TOKENIZE_TEXT = 16¶
Tokenize and fold text to ASCII
New in version 0.3.1.
- LITERAL_TEXT = 2¶
Assume the node CDATA is already valid
- STRIP_TEXT = 32¶
Strip leading and trailing spaces from text
New in version 0.3.4.
- HAS_TEXT = 4¶
If the node has leading text
- HAS_TAIL = 8¶
If the node has trailing text
- class Xmlb.BuilderSourceFlags(value)¶
Bases:
GLib.Flags
The flags for converting to XML.
- NONE = 0¶
No extra flags to use
- LITERAL_TEXT = 1¶
Do not attempt to repair XML whitespace
- WATCH_FILE = 2¶
Watch the source file for changes
- WATCH_DIRECTORY = 4¶
Watch the directory containing the source file for changes (for example, if watching all the sources in a directory — this allows the file monitors to be shared)
- class Xmlb.MachineDebugFlags(value)¶
Bases:
GLib.Flags
The flags to control the amount of debugging is generated.
- NONE = 0¶
No debug flags to use
- SHOW_STACK = 1¶
Show the stack addition and removal
- SHOW_PARSING = 2¶
Show the XPath predicate parsing
- SHOW_OPTIMIZER = 4¶
Show the optimizer operation
- SHOW_SLOW_PATH = 8¶
Show the query slow paths
- class Xmlb.MachineParseFlags(value)¶
Bases:
GLib.Flags
The flags to control the parsing behaviour.
- NONE = 0¶
No flags set
- OPTIMIZE = 1¶
Run an optimization pass on the predicate
- class Xmlb.NodeExportFlags(value)¶
Bases:
GLib.Flags
The flags for converting to XML.
- NONE = 0¶
No extra flags to use
- ADD_HEADER = 1¶
Add an XML header to the data
- ONLY_CHILDREN = 16¶
Only export the children of the node
- FORMAT_MULTILINE = 2¶
Split up children with a newline
- COLLAPSE_EMPTY = 32¶
If node has no children, collapse open and close tags
- FORMAT_INDENT = 4¶
Indent the XML by child depth
- INCLUDE_SIBLINGS = 8¶
Include the siblings when converting
- class Xmlb.OpcodeFlags(value)¶
Bases:
GLib.Flags
The opcode flags. The values have been carefully chosen so that a simple bitmask can be done to know how to compare for equality.
function─┐ ┌─string bound──┐ │ │ ┌──integer token┐ │ │ │ │ X X X X X X X 8 4 2 1
- UNKNOWN = 0¶
- INTEGER = 1¶
Integer value set
- BOOLEAN = 16¶
- TEXT = 2¶
Text value set
- TOKENIZED = 32¶
Tokenized text
- FUNCTION = 4¶
An operator
- BOUND = 8¶
A bound value, assigned later
- class Xmlb.QueryFlags(value)¶
Bases:
GLib.Flags
The flags used for queries.
- NONE = 0¶
No extra flags to use
- OPTIMIZE = 1¶
Optimize the query when possible
- USE_INDEXES = 2¶
Use the indexed parameters
- REVERSE = 4¶
Reverse the results order
- class Xmlb.SiloLoadFlags(value)¶
Bases:
GLib.Flags
The flags for loading a silo.
- NONE = 0¶
No extra flags to use
- NO_MAGIC = 1¶
No not check header signature
- WATCH_BLOB = 2¶
Watch the XMLB file for changes