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