コード例 #1
0
 /// <summary>
 /// Trims and capitalizes the given text.
 /// </summary>
 /// <param name="text"></param>
 /// <param name="textCase"></param>
 /// <returns></returns>
 public static string ChangeCase(string text, bool capitalizeAfterNonAlphaNumericChars)
 {
     return(TextCase.ChangeCase(text, TextCaseMode.CapitalizeEachWord, CultureInfo.CurrentCulture, capitalizeAfterNonAlphaNumericChars));
 }
コード例 #2
0
 /// <summary>
 /// Trims and capitalizes the given text.
 /// </summary>
 /// <param name="text"></param>
 /// <param name="textCase"></param>
 /// <param name="culture"></param>
 /// <returns></returns>
 public static string ChangeCase(string text, bool capitalizeAfterNonNumericChars, CultureInfo culture)
 {
     return(TextCase.ChangeCase(text, TextCaseMode.CapitalizeEachWord, culture, capitalizeAfterNonNumericChars));
 }
コード例 #3
0
 /// <summary>
 /// Trims and changes casing of the given text.
 /// </summary>
 /// <param name="text"></param>
 /// <param name="textCase"></param>
 /// <param name="culture"></param>
 /// <returns></returns>
 public static string ChangeCase(string text, TextCaseMode textCase, CultureInfo culture)
 {
     return(TextCase.ChangeCase(text, textCase, culture, false));
 }