Example #1
0
 ReplaceAll(MapTemplate toFind, MapTemplate toReplace, string operations)
 {
     return(CharUtils
            .Replace(Content,
                     toFind.Content,
                     toReplace.Content,
                     100,
                     operations));
 }
Example #2
0
 /// <summary>
 /// Search a template in the content of this objetc, and replace it with another one,
 /// </summary>
 /// <param name="toFind">the template to find</param>
 /// <param name="toReplace">the template to replace with</param>
 /// <returns>true if at least one modification occured</returns>
 public bool ReplaceAll(MapTemplate toFind, MapTemplate toReplace)
 {
     return(CharUtils
            .Replace(Content, toFind.Content, toReplace.Content, 100, ""));
 }