예제 #1
0
 public NamedValues <ZValue> GetAllValues()
 {
     if (_matchValues == null)
     {
         throw new PBException("can't get all values, no match found");
     }
     return(_matchValues.GetAllValues());
 }
예제 #2
0
파일: RegexValues.cs 프로젝트: 24/source_04
 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);
     }
 }