Secretchronicles/TSC — pull request #294 by brianvanderburg2 (2014-12-28 19:25:41+00:00)
Title: Rename Maryo/etc to Alex/etc

I was having some problems compiling from the devel branch at 5baacfaace2ea05e2705788a93984f219a4a4d4c because some files where using m_alex_type/etc resulting in a compile error. I've applied changes to rename everything from "maryo" to "alex" using the following script:

```python
# Replacements
repl = {
'MARYO': 'ALEX',
'MARIO': 'ALEX',
'Maryo': 'Alex',
'Mario': 'Alex',
'maryo': 'alex',
'mario': 'alex'
}

import sys, re

# RE for substitution
pattern = '|'.join(re.escape(k) for k in repl)
replace = lambda mo: repl.get(mo.group(1))
expr = re.compile('({0})'.format(pattern))

# read, subst, write
for fn in sys.argv[1:]:
contents = open(fn, 'rb').read().decode('UTF-8')
contents = expr.sub(replace, contents)
open(fn, 'wb').write(contents.encode('UTF-8'))
```

as follows

```bash
find tsc -name '*.hpp' -print0 | xargs -0 python update.py
find tsc -name '*.cpp' -print0 | xargs -0 python update.py
```

I also renamed some files and directories to match. I don't know if I need to apply this to the devel branch or to the release-2.0 branch, but it was the devel branch that wasn't compiling so that's where I branched off from. It is a fairly simple change though, if desired I can re-apply the changes in release-2.0 instead if desired.