Exemple #1
0
 public NamedValues <ZValue> GetAllValues()
 {
     if (_matchValues == null)
     {
         throw new PBException("can't get all values, no match found");
     }
     return(_matchValues.GetAllValues());
 }
Exemple #2
0
 public static RegexCaptureValues CreateRegexCaptureValues(MatchValues matchValues, bool allValues = false)
 {
     if (matchValues != null && matchValues.Success)
     {
         if (allValues)
         {
             return new RegexCaptureValues {
                        capture = matchValues.Match.Value, values = matchValues.GetAllValues()
             }
         }
         ;
         else
         {
             return new RegexCaptureValues {
                        capture = matchValues.Match.Value, values = matchValues.GetValues()
             }
         };
     }
     else
     {
         return(null);
     }
 }