public static int IndexOfIgnoreCase(this CaseVariantString text, string pattern) { return(text.Value.IndexOfIgnoreCase(pattern)); }
public static bool EndsWithIgnoreCase(this CaseVariantString text, string other) { return(text.Value.EndsWithIgnoreCase(other)); }
public static bool EqualsAnyIgnoreCase(this CaseVariantString text, IEnumerable <string> terms) { return(text.Value.EqualsAnyIgnoreCase(terms)); }
public static bool ContainsIgnoreCase(this CaseVariantString text, string pattern) { return(text.Value.ContainsIgnoreCase(pattern)); }
/// <summary> /// Implementação de comparação similar ao comando LIKE do SQL. /// Os caracteres tem significado especial no padrão comparado: /// - "%", qualquer quantidade de caracteres na posição. /// - "_", um único caractere qualquer na posição. /// </summary> /// <param name="text">O texto comparado.</param> /// <param name="pattern">O padrão pesquisado.</param> /// <returns>Verdadeiro se o padrão corresponde ao texto, falso caso contrário.</returns> public static bool Like(this CaseVariantString text, string pattern) { return(text.Value.Like(pattern)); }
public static bool EqualsAnyIgnoreCase(this CaseVariantString text, params string[] terms) { return(text.Value.EqualsAnyIgnoreCase(terms)); }
public static string[] Split(this CaseVariantString text, params string[] tokens) { return(text.Value.Split(tokens)); }
public static string[] Split(this CaseVariantString text, string token) { return(text.Value.Split(token)); }
public static string[] Split(this CaseVariantString text, params char[] separators) { return(text.Value.Split(separators)); }
public static bool IsNullOrWhiteSpace(this CaseVariantString text) { return(text.Value.IsNullOrWhiteSpace()); }
public static bool IsNullOrEmpty(this CaseVariantString text) { return(text.Value.IsNullOrEmpty()); }