/// <summary> /// Removes the last character of the text. /// </summary> /// <param name="text"></param> /// <returns></returns> public static string RemoveLastCharacter(string text) { return(CharacterReplace.RemoveLastCharacter(text)); }
/// <summary> /// Replaces all numeric characters from the given text. /// </summary> /// <param name="text"></param> /// <returns></returns> public static string RemoveNumericCharacters(string text) { return(CharacterReplace.RemoveNumericCharacters(text)); }
/// <summary> /// Replaces all non-invariant characters to the invariant characters. /// </summary> /// <param name="text"></param> /// <returns></returns> public static string ReplaceNonInvariantCharacters(string text) { return(CharacterReplace.ReplaceNonInvariantCharacters(text)); }
/// <summary> /// Replaces all Turkish characters with the culture invariant characters. /// </summary> /// <param name="text"></param> /// <returns></returns> public static string ReplaceTurkishCharacters(string text) { return(CharacterReplace.ReplaceTurkishCharacters(text)); }
/// <summary> /// Splits the given the text with the specified length. /// </summary> /// <param name="text">String to be shortened.</param> /// <param name="length">Length of the new string.</param> /// <param name="end">Inserts to the end of result text. Default is '...'.</param> /// <returns></returns> public static string SplitText(string text, int length, string end) { return(CharacterReplace.SplitText(text, length, end)); }
/// <summary> /// Splits the given the text with the specified length. /// </summary> /// <param name="text">String to be shortened.</param> /// <param name="length">Length of the new string.</param> /// <returns></returns> public static string SplitText(string text, int length) { return(CharacterReplace.SplitText(text, length, "...")); }