/// <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)); }
/// <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)); }
/// <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)); }