Put in TMetaUtils and make more generic the ReplaceAll routine.
Match a good portion of the function selection rules:

Act only at string level. We would need a lookup to solve all issues,
for example template functions.
Align linkdef to code, adding const to char*.