Package net.sourceforge.processdash.util

Examples of net.sourceforge.processdash.util.Perl5Util


        String text = asString(getArgOrLocal(arguments, 1, context));
        if (text == null || text.length() == 0)
          return ImmutableDoubleData.FALSE;

        Perl5Util perl = PerlPool.get();
        try {
            if (perl.match(pattern, text))
                return ImmutableDoubleData.TRUE;
            else
                return ImmutableDoubleData.FALSE;

        } catch (Throwable t) {
View Full Code Here


            return (l.compareTo(r) > 0);
        }
        private boolean matches(String l, String r) {
            if (l == null || r == null) return false;
            boolean result = false;
            Perl5Util perl = null;
            try {
                String re = "m\n" + r + "\n";
                perl = PerlPool.get();
                result = perl.match(re, l);
            } catch (Exception e) {
            } finally {
                PerlPool.release(perl);
            }
            return result;
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.util.Perl5Util

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.