Searched refs:replace (Results 1 - 25 of 474) sorted by relevance

1234567891011>>

/openjdk7/jdk/test/java/lang/StringBuffer/
H A DReplace.java26 @summary Use replace to append chars; No OutOfMemoryException should result
33 sb.replace(i, i+1, "a");
H A DExceptions.java95 System.out.println("StringBuffer.replace(int start, int end, String str)");
101 sb.replace(-1, 2, " ");
109 sb.replace(7, 8, " ");
116 sb.replace(2, 1, " ");
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DConcurrentMap.java41 * <tt>putIfAbsent</tt>, <tt>remove</tt>, and <tt>replace</tt> methods.
137 boolean replace(K key, V oldValue, V newValue); method in interface:ConcurrentMap
164 V replace(K key, V value); method in interface:ConcurrentMap
/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DDocumentFilter.java48 * <code>insertString</code>, <code>replace</code> and <code>remove</code>
106 * replace should override this and only call supers implementation as
118 public void replace(FilterBypass fb, int offset, int length, String text, method in class:DocumentFilter
120 fb.replace(offset, length, text, attrs);
182 public abstract void replace(int offset, int length, String string, method in class:DocumentFilter.FilterBypass
H A DStyledDocument.java77 * and setting replace to true.
83 * @param replace indicates whether or not the previous
85 * as set. If true, the operation will replace the
89 public void setCharacterAttributes(int offset, int length, AttributeSet s, boolean replace); argument
98 * @param replace indicates whether or not the previous
100 * are set. If true, the operation will replace the
104 public void setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace); argument
H A DMaskFormatter.java710 * <li>Else if at the end of the inserted text, the replace the item with
720 StringBuilder replace = null;
738 if (replace == null) {
739 replace = new StringBuilder();
741 replace.append(text.substring(0, textIndex));
745 if (replace != null) {
746 replace.append(getCharacter(rh.offset + counter,
752 if (replace != null) {
753 replace.append(getLiteral(rh.offset + counter));
760 replace
[all...]
/openjdk7/jdk/make/tools/src/build/tools/charsetmapping/
H A DDBCS.java203 line = line.replace("$PACKAGE$" , pkgName)
204 .replace("$IMPLEMENTS$", (hisName == null)?
206 .replace("$NAME_CLZ$", clzName)
207 .replace("$NAME_ALIASES$",
211 .replace("$NAME_CS$" , csName)
212 .replace("$CONTAINS$",
218 .replace("$HISTORICALNAME$",
221 .replace("$DECTYPE$", type)
222 .replace("$ENCTYPE$", type)
223 .replace("
[all...]
H A DSBCS.java223 line = line.replace("$PACKAGE$", pkgName);
226 line = line.replace("$NAME_CLZ$", clzName);
229 line = line.replace("$NAME_CS$", csName);
233 line = line.replace("$NAME_ALIASES$",
236 line = line.replace("$NAME_ALIASES$",
240 line = line.replace("$NAME_HIS$", hisName);
249 line = line.replace("$B2CTABLE$", b2c);
252 line = line.replace("$C2BLENGTH$", "0x" + Integer.toString(c2bOff, 16));
257 line = line.replace("$NONROUNDTRIP_B2C$", b2cNR);
263 line = line.replace("
[all...]
/openjdk7/jdk/src/solaris/native/sun/awt/
H A Dawt_Cursor.h42 void updateCursor(XPointer client_data, int32_t replace);
/openjdk7/jdk/src/windows/classes/sun/nio/fs/
H A DWindowsUriSupport.java52 uriPath = path.substring(slash).replace('\\', '/');
56 // 2. replace "-" with ":"
57 // 3. replace "s" with "%" (zone/scopeID delimiter)
61 .replace('-', ':')
62 .replace('s', '%');
66 uriPath = "/" + path.replace('\\', '/');
85 uriPath = "//" + path.replace('\\', '/');
147 // 2. replace ":" with "-"
148 // 3. replace "%" with "s" (zone/scopeID delimiter)
152 .replace('
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/tools/internal/jxc/gen/config/
H A DNGCCHandler.java98 int id = _source.replace(this,child);
104 int id = _source.replace(this,child);
110 int id = _source.replace(this,child);
116 int id = _source.replace(this,child);
122 int id = _source.replace(this,child);
134 int id = _source.replace(this,_parent);
147 int id = _source.replace(this,_parent);
154 int id = _source.replace(this,_parent);
161 int id = _source.replace(this,_parent);
168 int id = _source.replace(thi
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/xsom/impl/parser/state/
H A DNGCCHandler.java98 int id = _source.replace(this,child);
104 int id = _source.replace(this,child);
110 int id = _source.replace(this,child);
116 int id = _source.replace(this,child);
122 int id = _source.replace(this,child);
134 int id = _source.replace(this,_parent);
147 int id = _source.replace(this,_parent);
154 int id = _source.replace(this,_parent);
161 int id = _source.replace(this,_parent);
168 int id = _source.replace(thi
[all...]
/openjdk7/langtools/test/tools/javac/TryWithResources/
H A DUnusedResourcesTest.java142 source = template.replace("#S", suppressLevel.getSuppressAnno()).
143 replace("#R1", TwrStmt.TWR1.resourceName).
144 replace("#R2", TwrStmt.TWR2.resourceName).
145 replace("#R3", TwrStmt.TWR3.resourceName).
146 replace("#U1_R1", usage1.getUsage(TwrStmt.TWR1)).
147 replace("#U1_R2", usage2.getUsage(TwrStmt.TWR1)).
148 replace("#U1_R3", usage3.getUsage(TwrStmt.TWR1)).
149 replace("#U2_R1", usage1.getUsage(TwrStmt.TWR2)).
150 replace("#U2_R2", usage2.getUsage(TwrStmt.TWR2)).
151 replace("#U2_R
[all...]
/openjdk7/jdk/src/windows/classes/sun/misc/
H A DFileURLMapper.java62 file = "\\\\"+ s.replace('/', '\\');
65 String path = url.getFile().replace('/', '\\');
/openjdk7/jdk/test/java/util/HashMap/
H A DOverrideIsEmpty.java69 map.replace(key, value, null);
70 map.replace(key, value);
/openjdk7/jdk/src/share/classes/javax/management/
H A DStringValueExp.java76 return "'" + val.replace("'", "''") + "'";
/openjdk7/hotspot/src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/
H A DMethod.java54 return getHolder().replace('/', '.') + "::" + getName() + " @ " + osr_bci + " (" + getBytes() + " bytes)";
56 return getHolder().replace('/', '.') + "::" + getName() + " (" + getBytes() + " bytes)";
62 return getHolder().replace('/', '.') + "::" + getName() + " (" + getBytes() + " bytes)";
/openjdk7/jdk/make/tools/src/build/tools/generatebreakiteratordata/
H A DDictionaryBasedBreakIteratorBuilder.java61 protected void handleSpecialSubstitution(String replace, String replaceWith, argument
63 super.handleSpecialSubstitution(replace, replaceWith, startPos, description);
65 if (replace.equals("<dictionary>")) {
/openjdk7/jdk/test/java/lang/String/
H A DRegex.java54 String result = data.replace("def", "abc");
60 result = data.replace("(def)?", "abc");
66 result = data.replace("def", "\\ab$c");
/openjdk7/jdk/test/java/lang/StringBuilder/
H A DExceptions.java95 System.out.println("StringBuilder.replace(int start, int end, String str)");
101 sb.replace(-1, 2, " ");
108 sb.replace(7, 8, " ");
115 sb.replace(2, 1, " ");
/openjdk7/hotspot/test/testlibrary/
H A DClassFileInstaller.java43 String pathName = arg.replace('.', '/').concat(".class");
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/tools/jcore/
H A DNameFilter.java44 String klassName = kls.getName().asString().replace('/', '.');
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/util/
H A DWhich.java51 String classnameAsResource = classname.replace('.', '/') + ".class";
/openjdk7/jdk/test/com/sun/security/auth/login/ConfigFile/
H A DIllegalURL.java47 new FileInputStream(new URL(f).getFile().replace('/', File.separatorChar))) {
/openjdk7/jdk/test/lib/testlibrary/
H A DClassFileInstaller.java43 String pathName = arg.replace('.', '/').concat(".class");

Completed in 109 milliseconds

1234567891011>>