Beispiel #1
0
        /// <exception cref="java.util.regex.PatternSyntaxException"></exception>
        private void compile()
        {
            if (_pattern == null)
            {
                throw new System.ArgumentNullException("pattern == null");
            }
            string icuPattern = _pattern;

            if ((_flags & LITERAL) != 0)
            {
                icuPattern = quote(_pattern);
            }
            // These are the flags natively supported by ICU.
            // They even have the same value in native code.
            int icuFlags = _flags & (CASE_INSENSITIVE | COMMENTS | MULTILINE | DOTALL | UNIX_LINES
                                     );

            address = compileImpl(icuPattern, icuFlags);
        }
Beispiel #2
0
		/// <exception cref="java.util.regex.PatternSyntaxException"></exception>
		private void compile()
		{
			if (_pattern == null)
			{
				throw new System.ArgumentNullException("pattern == null");
			}
			string icuPattern = _pattern;
			if ((_flags & LITERAL) != 0)
			{
				icuPattern = quote(_pattern);
			}
			// These are the flags natively supported by ICU.
			// They even have the same value in native code.
			int icuFlags = _flags & (CASE_INSENSITIVE | COMMENTS | MULTILINE | DOTALL | UNIX_LINES
				);
			address = compileImpl(icuPattern, icuFlags);
		}
Beispiel #3
0
 private static extern java.util.regex.Matcher.NativeRegexMatcher libxobotos_Matcher_open
     (java.util.regex.Pattern.NativeRegexPattern patternAddr);
Beispiel #4
0
 private static java.util.regex.Matcher.NativeRegexMatcher openImpl(java.util.regex.Pattern.NativeRegexPattern
                                                                    patternAddr)
 {
     return(libxobotos_Matcher_open(patternAddr));
 }
Beispiel #5
0
 private static void closeImpl(java.util.regex.Pattern.NativeRegexPattern addr)
 {
     addr.Dispose();
 }