SCons string substitution.
|
|
|
|
|
|
|
|
quote_spaces(arg)
Generic function for putting double quotes around any string that
has white space in it. |
source code
|
|
|
|
escape_list(list,
escape_func)
Escape a list of arguments by running the specified escape_func
on every object in the list that has an escape() method. |
source code
|
|
|
|
subst_dict(target,
source)
Create a dictionary for substitution of special
construction variables. |
source code
|
|
|
|
|
|
|
|
|
|
scons_subst(strSubst,
env,
mode=False,
target=False,
source=False,
gvars={},
lvars={},
conv=False)
Expand a string or list containing construction variable
substitutions. |
source code
|
|
|
|
scons_subst_list(strSubst,
env,
mode=False,
target=False,
source=False,
gvars={},
lvars={},
conv=False)
Substitute construction variables in a string (or list or other
object) and separate the arguments into a command list. |
source code
|
|
|
|
scons_subst_once(strSubst,
env,
key)
Perform single (non-recursive) substitution of a single
construction variable keyword. |
source code
|
|
|
|
__revision__ = 'src/engine/SCons/Subst.py 3266 2008/08/12 07:3...
|
|
|
_strconv = [SCons.Util.to_String_for_subst, SCons.Util.to_Stri...
|
|
|
AllowableExceptions = (<type 'exceptions.IndexError'>, <type '...
|
|
|
SUBST_CMD = 0
|
|
|
SUBST_RAW = False
|
|
|
SUBST_SIG = 2
|
|
|
_rm = re.compile(r'\$[\(\)]')
|
|
|
_remove = re.compile(r'\$\([^\$]*(\$[^\)][^\$]*)*\$\)')
|
|
|
_regex_remove = [re.compile(r'\$[\(\)]'), None, re.compile(r'\...
|
|
|
_list_remove = [_rm_list, None, _remove_list]
|
|
|
_dollar_exps_str = '\\$[\\$\\(\\)]|\\$[_a-zA-Z][\\.\\w]*|\\${[...
|
|
|
_dollar_exps = re.compile(r'(\$[\$\(\)]|[_a-zA-Z][\.\w]*|\{[^\...
|
|
|
_separate_args = re.compile(r'(\$[\$\(\)]|\$[_a-zA-Z][\.\w]*|\...
|
|
|
_space_sep = re.compile(r'[\t ]+(?![^\{]*\})')
|