31def alphanumeric_block_name(func):
32 """this wrapper ensures that the 'instanceName' of the various """
33 """config blocks is cleaned up of any non-alphanumeric characters """
34 """that may arise from using 'selectionName' in the naming."""
35 @wraps(func)
36 def wrapper(*args, **kwargs):
37
38 orig_name = func(*args, **kwargs)
39
40 if orig_name is None:
41 return ""
42
43
45
46 return result
47 return wrapper
48
std::string replace(std::string s, const std::string &s2, const std::string &s3)