[System.Net] Add support for .pac proxy config scripts on mac
[mono.git] / mcs / class / System / System.Text.RegularExpressions / NotAllowedConstruct.jvm.cs
1 using System;\r
2 using System.Collections.Generic;\r
3 using System.Text;\r
4 using java.util.regex;\r
5 using java.lang;\r
6 \r
7 namespace System.Text.RegularExpressions\r
8 {\r
9         sealed class NotAllowedConstruct : IConstructType\r
10         {\r
11                 private const string DEFINITION = @"(\A|((\A|[^\\])([\\]{2})*\((\?([:>=!]|<([=!]|(\w+>))))?))\{\d+(,(\d+)?)?\}";\r
12 \r
13                 public bool HasConstruct (string pattern, RegexOptions options) {\r
14                         return JavaUtils.IsMatch (pattern, DEFINITION);\r
15                 }\r
16 \r
17                 public string Reformat (RegexOptions options,\r
18                         string reformattedPattern,\r
19                         PatternGrouping patternGrouping) {\r
20                         throw new NotImplementedException ("Reformat for not allowed constructs is not implemented.");\r
21                 }\r
22         }\r
23 }\r