Functions | Variables
pymavlink::generator::lib::genxmlif::xmlifUtils Namespace Reference

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+')

Function Documentation

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.

convert input parameter 'fileOrUrl' into a valid absolute URL

Definition at line 136 of file xmlifUtils.py.

convert input parameter 'fileOrUrl' into a valid URL

Definition at line 113 of file xmlifUtils.py.

normalize filter

Definition at line 162 of file xmlifUtils.py.

substitute each whitespace characters by a single ' '

Definition at line 94 of file xmlifUtils.py.

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.

FUNCTIONS.

remove all whitespaces from a string

Definition at line 71 of file xmlifUtils.py.

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.

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.


Variable Documentation

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.

DEFINITIONS.

REGULAR EXPRESSION OBJECTS

Definition at line 57 of file xmlifUtils.py.

Definition at line 58 of file xmlifUtils.py.



mavlink
Author(s): Lorenz Meier
autogenerated on Wed Sep 9 2015 18:06:18