Exemple #1
0
 public static string Left(this string str, int length)
 {
     return(StringUtility.Left(str, length));
 }
Exemple #2
0
 public static string Lower(this string str)
 {
     return(StringUtility.Lower(str));
 }
Exemple #3
0
 public static bool IsIn(this string str, bool caseSensitive, params string[] list)
 {
     return(StringUtility.IsIn(str, caseSensitive, list));
 }
Exemple #4
0
 public static bool IsEmailAddress(this string str)
 {
     return(StringUtility.IsEmailAddress(str));
 }
Exemple #5
0
 /// <summary>
 /// Returns the string converted to PascalCase.
 /// </summary>
 /// <param name="str">The string.</param>
 public static string ToPascalCase(this string str)
 {
     return(StringUtility.ToPascalCase(str));
 }
Exemple #6
0
 public static bool IsIn(this string str, params string[] list)
 {
     return(StringUtility.IsIn(str, false, list));
 }
Exemple #7
0
 public static bool EndsWithCI(this string str, string value)
 {
     return(StringUtility.EndsWithCI(str, value));
 }
Exemple #8
0
 public static string SplitCaps(this string str)
 {
     return(StringUtility.SplitCaps(str));
 }
Exemple #9
0
 public static bool ContainsCI(this string str, params string[] values)
 {
     return(StringUtility.ContainsCI(str, values));
 }
Exemple #10
0
 /// <summary>
 /// Returns a value indicating if the string matches the specified value, using a case-insensitive comparison.
 /// </summary>
 /// <param name="str">The string.</param>
 /// <param name="value">The value to compare with.</param>
 public static bool EqualsCI(this string str, string value)
 {
     return(StringUtility.EqualsCI(str, value));
 }
Exemple #11
0
 public static string ReplaceCI(this string str, string oldValue, string newValue)
 {
     return(StringUtility.ReplaceCI(str, oldValue, newValue));
 }
Exemple #12
0
 public static string[] ConvertCsvToStringArray(this string str, char separator = ',', StringSplitOptions options = StringSplitOptions.RemoveEmptyEntries)
 {
     return(StringUtility.ConvertCsvToStringArray(str, separator, options));
 }
Exemple #13
0
 public static string ChopEnd(this string str, string end)
 {
     return(StringUtility.ChopEnd(str, end));
 }
Exemple #14
0
 public static string ChopStart(this string str, string start)
 {
     return(StringUtility.ChopStart(str, start));
 }
Exemple #15
0
 public static string Right(this string str, int length)
 {
     return(StringUtility.Right(str, length));
 }