Add the RegexOptions.Compiled enumeration value to the MOBILE profile.
Fixes: http://bugzilla.xamarin.com/show_bug.cgi?id=149
MonoTouch and Mono for Android still use `PatternCompiler`, which is
interpreted. Thus RegexOptions.Compiled is ignored, and is present only for
compatibility with Windows Phone 7, which states [0]:
Present only in Silverlight for Windows Phone, but not supported.
[0] http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regexoptions(VS.96).aspx
RegexOptions.IgnoreCase |
RegexOptions.Multiline |
RegexOptions.ExplicitCapture |
-#if !NET_2_1
+#if MOBILE || !NET_2_1
RegexOptions.Compiled |
#endif
RegexOptions.Singleline |
const RegexOptions ecmaopts =
RegexOptions.IgnoreCase |
RegexOptions.Multiline |
-#if !NET_2_1
+#if MOBILE || !NET_2_1
RegexOptions.Compiled |
#endif
RegexOptions.ECMAScript;
IgnoreCase = 0x001,
Multiline = 0x002,
ExplicitCapture = 0x004,
-#if !NET_2_1
+#if MOBILE || !NET_2_1
Compiled = 0x008,
#endif
Singleline = 0x010,