Cortex  10.0.0-a4
Functions | Variables
StringUtil.py File Reference

This file defines useful string related functions. More...

Functions

def IECore.StringUtil.wrap (text, width)
 Returns a new string which is the old string with word wrapping performed so that no lines are longer than width. More...
 
def IECore.StringUtil.quoteCmdLineArg (arg)
 Encodes shell command line arguments treating special characters. More...
 
def IECore.StringUtil.unquoteCmdLineArg (arg)
 Reverts the transformations from quoteCmdLineArg.
 
def IECore.StringUtil.quoteCmdLineArgs (args)
 Applies special quoting on the given argument list Uses quoteCmdLineArg() on each of the arguments.
 
def IECore.StringUtil.quotedCmdLine (args)
 Builds a single command line string from the given argument list. More...
 
def IECore.StringUtil.unquoteCmdLineArgs (args)
 Reverts any encoding applied to special characters in the given argument list. More...
 
def IECore.StringUtil.unquoteCmdLine (cmdLine)
 From a given command line, splits the parameters and unquote them. More...
 

Variables

list IECore.StringUtil.__all__ = [ 'wrap', 'quoteCmdLineArg', 'unquoteCmdLineArg', 'quotedCmdLine', 'quoteCmdLineArgs', 'unquoteCmdLineArgs' ]
 

Detailed Description

This file defines useful string related functions.