Пример #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));
 }
Пример #2
0
 static string NormalizeLineEndings(ScString e)
 {
     return(Regex.Replace(e.ToString(), @"\r\n|\n\r|\n|\r", "\r\n"));
 }
Пример #3
0
 public static string Localized(this ScString str)
 {
     return(FontManager.instance != null?FontManager.instance.ToLocalizedCurrent(str) : str.ToString());
 }