Exemple #1
0
 public static SBool StringListDoesNotContainStringIgnoringCase(SStringList sl, SString s)
 {
     return(new SBool(!sl.Value.Any(i => i.Equals(s.Value, StringComparison.OrdinalIgnoreCase))));
 }
Exemple #2
0
 public static SString StringDictGetByKey(SStringDict sd, SString key)
 {
     return(new SString(sd.Value[key.Value]));
 }
Exemple #3
0
 public static SBool StringListContainsString(SStringList sl, SString s)
 {
     return(new SBool(sl.Value.Any(i => i.Equals(s.Value, StringComparison.Ordinal))));
 }
Exemple #4
0
 public static SBool StringDictContainsKey(SStringDict sd, SString s)
 {
     return(new SBool(sd.Value.ContainsKey(s.Value)));
 }
Exemple #5
0
 public static SBool StringDictDoesNotContainValue(SStringDict sd, SString s)
 {
     return(new SBool(!sd.Value.ContainsValue(s.Value)));
 }
Exemple #6
0
 public static SString StringConcatString(SString s1, SString s2)
 {
     return(new SString(s1.Value + s2.Value));
 }
Exemple #7
0
 public static SNumber StringGetLength(SString s)
 {
     return(new SNumber(s.Value.Length));
 }
Exemple #8
0
 public static SString StringTrim(SString s)
 {
     return(new SString(s.Value.Trim()));
 }
Exemple #9
0
 public static SStringList StringSplit(SString s, SString separator)
 {
     return(new SStringList(s.Value.Split(separator.Value).ToList()));
 }
Exemple #10
0
 public static SString StringToUpper(SString s)
 {
     return(new SString(s.Value.ToUpper()));
 }
Exemple #11
0
 public static SBool StringContainsStringIgnoringCase(SString s1, SString s2)
 {
     return(new SBool(s1.Value.IndexOf(s2.Value, StringComparison.OrdinalIgnoreCase) >= 0));
 }
Exemple #12
0
 public static SBool StringStartsWithStringIgnoringCase(SString s1, SString s2)
 {
     return(new SBool(s1.Value.StartsWith(s2.Value, StringComparison.OrdinalIgnoreCase)));
 }
Exemple #13
0
 public static SBool StringIsNotEqualToStringIgnoringCase(SString s1, SString s2)
 {
     return(new SBool(!string.Equals(s1.Value, s2.Value, StringComparison.OrdinalIgnoreCase)));
 }
Exemple #14
0
 public static SBool StringIsEqualToString(SString s1, SString s2)
 {
     return(new SBool(string.Equals(s1.Value, s2.Value, StringComparison.Ordinal)));
 }