public StringEquals(IStringComputable input1, IStringComputable input2)
 {
     Inputs = new List <IStringComputable>()
     {
         input1, input2
     };
 }
Exemple #2
0
 /// <summary>
 /// Creates an instance of this class with the input and the pattern as string computables.
 /// </summary>
 /// <param name="input">The input, which provides the string which contents will be compared to the pattern.</param>
 /// <param name="pattern">The string computable that provides the pattern.</param>
 public StringMatchesWildcardPattern(IStringComputable input, IStringComputable pattern)
 {
     Input   = input;
     Pattern = pattern;
 }
Exemple #3
0
 /// <summary>
 /// Creates an instance of this class with the input as string computable and the pattern as a constant string.
 /// </summary>
 /// <param name="input">The input, which provides the string which contents will be compared to the pattern.</param>
 /// <param name="pattern">The pattern that the input will be compared against.</param>
 public StringMatchesWildcardPattern(IStringComputable input, string pattern) : this(input, new StringConstant(pattern))
 {
 }
 /// <summary>
 /// Creates an instance of this substring computable with a computable for the source but with the start index and the length as
 /// fixed numbers.
 /// </summary>
 /// <param name="source">The computable that provides the string from which the substring is retrieved.</param>
 /// <param name="startIndex">The start index as a fixed number.</param>
 /// <param name="length">The length as a fixed number.</param>
 public SubString(IStringComputable source, int startIndex, int length)
     : this(source, new NumericConstant(startIndex), new NumericConstant(length))
 {
 }
 /// <summary>
 /// Creates an instance of this substring computable with a computable for the source, the start index and the length.
 /// </summary>
 /// <param name="source">The computable that provides the string from which the substring is retrieved.</param>
 /// <param name="startIndex">The computable that provides the start index for the operation.</param>
 /// <param name="length">The computable that provides the length for the operation.</param>
 public SubString(IStringComputable source, INumericComputable startIndex, INumericComputable length)
 {
     Source     = source;
     StartIndex = startIndex;
     Length     = length;
 }
Exemple #6
0
 /// <summary>
 /// Creates an instance of this computable with the required input.
 /// </summary>
 /// <param name="input">The input computable that provides a string.</param>
 public ToLowerInvariant(IStringComputable input)
 {
     Input = input;
 }
 public ParseDateTime(IStringComputable dateTimeString, IStringComputable format)
 {
     DateTimeString = dateTimeString;
     Format         = format;
 }
 /// <summary>
 /// Creates an instance of this computable with the required computables.
 /// </summary>
 /// <param name="source">The source computable.</param>
 /// <param name="subString">The sub-string computable.</param>
 /// <param name="startIndex">The start index computable.</param>
 public IndexOfString(IStringComputable source, IStringComputable subString, INumericComputable startIndex)
 {
     Source     = source;
     SubString  = subString;
     StartIndex = startIndex;
 }
Exemple #9
0
 public IsNullOrEmpty(string input)
 {
     Input = new StringConstant(input);
 }
Exemple #10
0
 public IsNullOrEmpty(IStringComputable input)
 {
     Input = input;
 }
 public ParseToNumeric(string input)
 {
     Input = new StringConstant(input);
 }
 public ParseToNumeric(IStringComputable input)
 {
     Input = input;
 }
 /// <summary>
 /// Creates an instance of this computable with the source computable, a fixed sub-string and a fixed start index.
 /// </summary>
 /// <param name="source">The source computable.</param>
 /// <param name="subString">The fixed sub-string.</param>
 /// <param name="startIndex">The fixed start index.</param>
 public IndexOfString(IStringComputable source, string subString, int startIndex) : this(source, new StringConstant(subString), new NumericConstant(startIndex))
 {
 }
 /// <summary>
 /// Creates an instance of this computable with the source and sub-string computable. The start index will always be 0.
 /// </summary>
 /// <param name="source">The source computable.</param>
 /// <param name="subString">The sub-string computable.</param>
 public IndexOfString(IStringComputable source, IStringComputable subString) : this(source, subString, new NumericConstant(0))
 {
 }
 public IsValidDateTime(IStringComputable dateTimeString, IStringComputable format)
 {
     DateTimeString = dateTimeString;
     Format         = format;
 }
 public IsValidDateTime(IStringComputable dateTimeString, string format) :
     this(dateTimeString, new StringConstant(format))
 {
 }
 /// <summary>
 /// Creates an instance of this computable with the input node.
 /// </summary>
 /// <param name="input">The input node.</param>
 public StringLength(IStringComputable input)
 {
     Input = input;
 }