Example #1
0
 public int LastIndexOf(string mainString, char charToCheckFor)
 {
     ValidatePublicArg.NotNull(mainString, "mainString");
     return(mainString.LastIndexOf(charToCheckFor));
 }
Example #2
0
 public int IndexOf(string mainString, string subStringToCheckFor)
 {
     ValidatePublicArg.NotNull(mainString, "mainString");
     ValidatePublicArg.NotNull(subStringToCheckFor, "subStringToCheckFor");
     return(mainString.IndexOf(subStringToCheckFor, this.stringComparison));
 }
Example #3
0
 public int IndexOfAny(string mainString, char[] charsToCheckFor)
 {
     ValidatePublicArg.NotNull(mainString, "mainString");
     ValidatePublicArg.NotNull(charsToCheckFor, "charsToCheckFor");
     return(mainString.IndexOfAny(charsToCheckFor));
 }
Example #4
0
 public bool EndsWith(string mainString, string subStringToCheckFor)
 {
     ValidatePublicArg.NotNull(mainString, "mainString");
     ValidatePublicArg.NotNull(subStringToCheckFor, "subStringToCheckFor");
     return(mainString.EndsWith(subStringToCheckFor, this.stringComparison));
 }