private string ValueOf(int index) { if (!Indices.Contains(index)) { ThrowException(index); } return(_match.Groups[index].Value); }
public RegexFunctionElement(Regex regexWithGroup, int defaultGroupValueIndex = 0) { Regex = regexWithGroup; _defaultGroupValueIndex = defaultGroupValueIndex; _defaultGroupValueKey = null; if (!Indices.Contains(defaultGroupValueIndex)) { ThrowException(defaultGroupValueIndex); } }
public Vector <double> GetEdgeByIndex(int index) { if (!Indices.Contains(index)) { return(null); } else { for (int ell = 0; ell < Edges.Length; ell++) { if (Edges[ell].Item1 == index) { return(Edges[ell].Item2); } } return(null); } }
public void AddConstraint(Func <string[], string> constraint) { Checkers.Add(o => constraint(o.Where((v, i) => Indices.Contains(i)).ToArray())); }