Esempio n. 1
0
 /// <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));
 }
Esempio n. 2
0
 /// <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));
 }
Esempio n. 3
0
 /// <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));
 }
Esempio n. 4
0
 /// <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));
 }
Esempio n. 5
0
 /// <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));
 }
Esempio n. 6
0
 /// <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, "..."));
 }