Examples of replace()


Examples of org.jitterbit.ui.util.find.SearchAndReplaceTextTarget.replace()

    @Override
    public void replace(Match match, String replacement) {
        ScriptMatch scriptMatch = (ScriptMatch) match;
        SearchAndReplaceTextTarget target = getTextToReplace(scriptMatch);
        target.replace(scriptMatch.textLocation, replacement);
        handleReplace(scriptMatch.script, target);
    }

    private SearchAndReplaceTextTarget getTextToReplace(ScriptMatch match) {
        if (match == currentMatch && currentText != null) {
View Full Code Here

Examples of org.jregex.Replacer.replace()

                        String around = Text.getText(arg);
                        pat = new Pattern(Pattern.quote(around));
                    }

                    Replacer r = pat.replacer(repl);
                    String result = r.replace(initial);

                    return context.runtime.newText(result);
                }
            }));
View Full Code Here

Examples of org.jruby.util.ByteList.replace()

           
            if (length > rest) length = rest;

            // Yow...this is ugly
            buf.realSize = length;
            buf.replace(0, length, internal.getByteList().bytes, (int) pos, length);
        }
       
        if (buf == null) {
            if (!eof) buf = new ByteList();
            length = 0;
View Full Code Here

Examples of org.kitesdk.data.spi.StorageKey.replace()

    PartitionStrategy strategy = new PartitionStrategy.Builder()
        .identity("id")
        .build();

    StorageKey expected = new StorageKey(strategy);
    expected.replace(0, 0L);

    Assert.assertEquals("Should convert to schema type",
        expected,
        convert.toKey(new Path("id=0"), new StorageKey(strategy)));
  }
View Full Code Here

Examples of org.lealone.dbobject.table.TableView.replace()

            if (view == null) {
                Schema schema = session.getDatabase().getSchema(session.getCurrentSchemaName());
                sysSession.setCurrentSchema(schema);
                view = new TableView(getSchema(), id, viewName, querySQL, null, columnNames, sysSession, false);
            } else {
                view.replace(querySQL, columnNames, sysSession, false, force);
            }
        } finally {
            sysSession.setCurrentSchema(db.getSchema(Constants.SCHEMA_MAIN));
        }
        if (comment != null) {
View Full Code Here

Examples of org.locationtech.udig.catalog.ICatalog.replace()

       
        URL id = layer.getID();
        ICatalog localCatalog = CatalogPlugin.getDefault().getLocalCatalog();
        IGeoResource resource = localCatalog.getById(IGeoResource.class, new ID(id), new NullProgressMonitor());
        IService parent = resource.service(new NullProgressMonitor());
        localCatalog.replace(parent.getID(), parent);
       
        assertEquals(0, changed[0]);
       
        assertTrue(prop.isTrue(layer, "Polygon")); //$NON-NLS-1$
        assertTrue(prop.isTrue(layer, "Polygon")); //$NON-NLS-1$
View Full Code Here

Examples of org.pdf4j.saxon.regex.RegularExpression.replace()

                        "The regular expression in replace() must not be one that matches a zero-length string",
                        "FORX0003", c);
            }
        }
        String input = arg0.getStringValue();
        CharSequence res = re.replace(input, replacement);
        return StringValue.makeStringValue(res);
    }

    /**
     * Check the contents of the replacement string
View Full Code Here

Examples of org.red5.server.api.stream.IPlaylistSubscriberStream.replace()

        IPlayItem item = SimplePlayItem.build(streamName);
        int itemCount = playlistStream.getItemSize();
        for (int i = 0; i < itemCount; i++) {
          IPlayItem tmpItem = playlistStream.getItem(i);
          if (tmpItem.getName().equals(oldStreamName)) {
            if (!playlistStream.replace(tmpItem, item)) {
              log.warn("Playlist item replacement failed");
              sendNSFailed(streamConn, StatusCodes.NS_PLAY_FAILED, "Playlist swap failed.", streamName, streamId);
            }
            break;
          }
View Full Code Here

Examples of org.resmedicinae.resmedlib.term.String.replace()

        filterXml.setDescription("XML");
        chooser.setFileFilter(filterXml);
        int returnVal = chooser.showDialog(new JFrame(), "Import HealthRecord");
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            String curFile = chooser.getSelectedFile().getAbsolutePath();
            curFile = curFile.replace('\\', '/');
            HealthRecord importedHealthRecord = getHealthRecordDataFromDocument(parseXMLFile(curFile));
            importedHealthRecord.setIdentifier(ObjectID.getNewOId());
            Hashtable healthRecordData = new Hashtable();
            healthRecordData.put(HealthRecordIndex.ID, importedHealthRecord.getIdentifier());
            healthRecordData.put(HealthRecordIndex.NAME, importedHealthRecord.getName());
View Full Code Here

Examples of org.slf4j.migrator.line.MultiGroupConversionRule.replace()

    String s = "abcd Log";
    Pattern pat = cr2.getPattern();
    Matcher m = pat.matcher(s);

    assertTrue(m.matches());
    String r = cr2.replace(m);
    assertEquals("abcd LOGGER", r);

    System.out.println(r);
  }
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.