Examples of substitute()


Examples of org.apache.tools.ant.util.regexp.Regexp.substitute()

                               int options) {
        String res = input;
        Regexp regexp = r.getRegexp(project);

        if (regexp.matches(input, options)) {
            res = regexp.substitute(input, s.getExpression(project), options);
        }

        return res;
    }
View Full Code Here

Examples of org.apache.tools.ant.util.regexp.Regexp.substitute()

        String res = input;
        Regexp regexp = r.getRegexp(getProject());

        if (regexp.matches(input, options)) {
            log("Found match; substituting", Project.MSG_DEBUG);
            res = regexp.substitute(input, s.getExpression(getProject()),
                                    options);
        }

        return res;
    }
View Full Code Here

Examples of org.clapper.util.regex.RegexUtil.substitute()

                it = strings.iterator();

            while (it.hasNext())
            {
                String s1 = (String) it.next();
                String s2 = ru.substitute (substitution, s1);

                System.out.println ();
                System.out.println ("Substitution: " + substitution);
                System.out.println ("Before:       " + s1);
                System.out.println ("After:        " + s2);
View Full Code Here

Examples of org.clapper.util.text.UnixShellVariableSubstituter.substitute()

                new BackupIndexDereferencer (index, maxRolledOverFiles);
            UnixShellVariableSubstituter sub =
                new UnixShellVariableSubstituter();

            sub.setHonorEscapes(false);
            String fileName = sub.substitute(fileNamePattern,
                                             deref,
                                             null,
                                             fileNamePattern);
            if (! deref.patternIsLegal())
            {
View Full Code Here

Examples of org.jakstab.rtl.Context.substitute()

    for (int i=0; i<patterns.length; i++) {
      if (match(e, patterns[i], bindings)) {
        // Success
        Context context = new Context();
        for (Map.Entry<RTLVariable, RTLExpression> binding : bindings.entrySet())
          context.substitute(binding.getKey(), binding.getValue());
        RTLExpression result = results[i].evaluate(context);
        //logger.debug("Simplified " + e + " to " + result);
        e = result;
      }
      bindings.clear();
View Full Code Here

Examples of pspdash.Perl5Util.substitute()

        try {
            String isSimpleFunction = "m\n^" + simpleFunction + "$\n";
            String containsSimpleFunction = "m\n" + simpleFunction + "\n";

            String expression = value.substring(1);    // remove initial "!"
            expression = perl.substitute("s/\\[\\(/" + FB + "/g", expression);
            expression = perl.substitute("s/\\)\\]/" + FE + "/g", expression);

            String pre, func, post, tempname;

            while (! perl.match(isSimpleFunction, expression)) {
View Full Code Here

Examples of pspdash.Perl5Util.substitute()

            String isSimpleFunction = "m\n^" + simpleFunction + "$\n";
            String containsSimpleFunction = "m\n" + simpleFunction + "\n";

            String expression = value.substring(1);    // remove initial "!"
            expression = perl.substitute("s/\\[\\(/" + FB + "/g", expression);
            expression = perl.substitute("s/\\)\\]/" + FE + "/g", expression);

            String pre, func, post, tempname;

            while (! perl.match(isSimpleFunction, expression)) {
                try {
View Full Code Here

Examples of pt.opensoft.text.Regex.substitute()

    try {

            Regex regex = new Regex("(\\s+\\S+\\(\\d+)\\,(\\d+\\)\\s+)");

            fieldsDDL = regex.substitute(fieldsDDL, "$1;$2", Regex.SUBSTITUTE_ALL);

            Regex fieldDDLRegex1 = new Regex("^\\s*(\\S+)\\s+");

            Regex fieldDDLRegex2 = new Regex("(.*)\\s+NOT\\s+NULL", Regex.CASE_INSENSITIVE_MASK);
            Regex fieldDDLRegex3 = new Regex("(.*)\\s+NULL", Regex.CASE_INSENSITIVE_MASK);
View Full Code Here

Examples of weka.core.Environment.substitute()

    if (m_ioThread == null) {
      if (m_Loader instanceof FileSourcedConverter) {
        String temp = ((FileSourcedConverter) m_Loader).retrieveFile().getPath();
        Environment env = (m_env == null) ? Environment.getSystemWide() : m_env;
        try {
          temp = env.substitute(temp);
        } catch (Exception ex) {}
        File tempF = new File(temp);
        if (!tempF.isFile()) {
          ok = false;
        }
View Full Code Here

Examples of weka.core.Environment.substitute()

      if (theLoader instanceof FileSourcedConverter) {
        String fileName = ((FileSourcedConverter)theLoader).
        retrieveFile().getPath();
        Environment env = m_mainKFPerspective.getEnvironmentSettings();
        try {
          fileName = env.substitute(fileName);
        } catch (Exception ex) {         
        }

        File tempF = new File(fileName);
        if (!tempF.isFile()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.