Example #1
0
 public static string Localized(this ScString str, params object[] args)
 {
     return(FontManager.instance != null
         ? FontManager.instance.ToLocalizedCurrent(str, args)
         : string.Format(str.ToString(), args));
 }
Example #2
0
 static string NormalizeLineEndings(ScString e)
 {
     return(Regex.Replace(e.ToString(), @"\r\n|\n\r|\n|\r", "\r\n"));
 }
Example #3
0
 public static string Localized(this ScString str)
 {
     return(FontManager.instance != null?FontManager.instance.ToLocalizedCurrent(str) : str.ToString());
 }