Functions | |
def | collapseString |
substitute multiple whitespace characters by a single ' ' | |
def | convertToAbsUrl |
convert input parameter 'fileOrUrl' into a valid absolute URL | |
def | convertToUrl |
convert input parameter 'fileOrUrl' into a valid URL | |
def | normalizeFilter |
normalize filter | |
def | normalizeString |
substitute each whitespace characters by a single ' ' | |
def | nsNameToQName |
Namespace handling. | |
def | processWhitespaceAction |
process whitespace action | |
def | removeWhitespaces |
FUNCTIONS. | |
def | splitClarkQName |
def | splitQName |
def | toClarkQName |
Variables | |
tuple | _escape = re.compile(eval(r'u"[&<>\"\u0080-\uffff]+"')) |
XML serialization of text the following functions assume an ascii-compatible encoding (or "utf-16") | |
tuple | _reSplitUrlApplication = re.compile(r"(file|http|ftp|gopher):(.+)") |
tuple | _reWhitespace = re.compile('\s') |
DEFINITIONS. | |
tuple | _reWhitespaces = re.compile('\s+') |
def pymavlink.generator.lib.genxmlif.xmlifUtils.collapseString | ( | strValue, | |
lstrip = 1 , |
|||
rstrip = 1 |
|||
) |
substitute multiple whitespace characters by a single ' '
Definition at line 78 of file xmlifUtils.py.
def pymavlink.generator.lib.genxmlif.xmlifUtils.convertToAbsUrl | ( | fileOrUrl, | |
baseUrl | |||
) |
convert input parameter 'fileOrUrl' into a valid absolute URL
Definition at line 136 of file xmlifUtils.py.
def pymavlink.generator.lib.genxmlif.xmlifUtils.convertToUrl | ( | fileOrUrl | ) |
convert input parameter 'fileOrUrl' into a valid URL
Definition at line 113 of file xmlifUtils.py.
def pymavlink.generator.lib.genxmlif.xmlifUtils.normalizeFilter | ( | filterVar | ) |
normalize filter
Definition at line 162 of file xmlifUtils.py.
def pymavlink.generator.lib.genxmlif.xmlifUtils.normalizeString | ( | strValue | ) |
substitute each whitespace characters by a single ' '
Definition at line 94 of file xmlifUtils.py.
def pymavlink.generator.lib.genxmlif.xmlifUtils.nsNameToQName | ( | nsLocalName, | |
curNs | |||
) |
Namespace handling.
Convert a tuple '(namespace, localName)' to a string 'prefix:localName' Input parameter: nsLocalName: tuple '(namespace, localName)' to be converted curNs: list of current namespaces Returns the corresponding string 'prefix:localName' for 'nsLocalName'.
Definition at line 174 of file xmlifUtils.py.
def pymavlink.generator.lib.genxmlif.xmlifUtils.processWhitespaceAction | ( | strValue, | |
wsAction, | |||
lstrip = 1 , |
|||
rstrip = 1 |
|||
) |
process whitespace action
Definition at line 101 of file xmlifUtils.py.
def pymavlink.generator.lib.genxmlif.xmlifUtils.removeWhitespaces | ( | strValue | ) |
converts clark notation {namespace}localName into a tuple (namespace, localName) Input parameter: 'qName': {namespace}localName to be converted Returns prefix and localName as separate strings
Definition at line 235 of file xmlifUtils.py.
Split the given 'qName' into prefix/namespace and local name. Input parameter: 'qName': contains a string 'prefix:localName' or '{namespace}localName' Returns a tuple (prefixOrNamespace, localName)
Definition at line 196 of file xmlifUtils.py.
def pymavlink.generator.lib.genxmlif.xmlifUtils.toClarkQName | ( | tupleOrLocalName | ) |
converts a tuple (namespace, localName) into clark notation {namespace}localName qNames without namespace remain unchanged Input parameter: 'tupleOrLocalName': tuple '(namespace, localName)' to be converted Returns a string {namespace}localName
Definition at line 218 of file xmlifUtils.py.
tuple pymavlink::generator::lib::genxmlif::xmlifUtils::_escape = re.compile(eval(r'u"[&<>\"\u0080-\uffff]+"')) |
XML serialization of text the following functions assume an ascii-compatible encoding (or "utf-16")
Definition at line 257 of file xmlifUtils.py.
tuple pymavlink::generator::lib::genxmlif::xmlifUtils::_reSplitUrlApplication = re.compile(r"(file|http|ftp|gopher):(.+)") |
Definition at line 60 of file xmlifUtils.py.
tuple pymavlink::generator::lib::genxmlif::xmlifUtils::_reWhitespace = re.compile('\s') |
tuple pymavlink::generator::lib::genxmlif::xmlifUtils::_reWhitespaces = re.compile('\s+') |
Definition at line 58 of file xmlifUtils.py.