Home
last modified time | relevance | path

Searched refs:replaceAll (Results 1 – 25 of 62) sorted by relevance

123

/external/apache-harmony/regex/src/test/java/org/apache/harmony/tests/java/util/regex/
DReplaceTest.java39 assertEquals("foobarxxxarfooxxx", m.replaceAll(repl)); in testSimpleReplace()
55 s = m.replaceAll(repl); in testCaptureReplace()
68 s = m.replaceAll(repl); in testCaptureReplace()
81 s = target.replaceAll(pattern, repl); in testEscapeReplace()
84 s = target.replaceAll(pattern, repl); in testEscapeReplace()
87 s = target.replaceAll(pattern, repl); in testEscapeReplace()
DPattern2Test.java168 assertTrue(m.replaceAll("-").equals("-foo-foo-foo-")); in testReplace()
183 assertTrue(m.replaceAll("$1ite").equals("Bite for bite")); in testReplace()
189 assertTrue(m.replaceAll("xxxx$1").equals("card #xxxx-xxxx-1234")); in testReplace()
195 assertTrue(m.replaceAll("$3$2$1").equals("right left, down up")); in testReplace()
202 assertTrue(m.replaceAll("<b> $1 </b>").equals( in testReplace()
/external/jmonkeyengine/engine/src/core/com/jme3/shader/
DShaderUtils.java41 input = input.replaceAll("varying", "in"); in convertToGLSL130()
43 input = input.replaceAll("attribute", "in"); in convertToGLSL130()
44 input = input.replaceAll("varying", "out"); in convertToGLSL130()
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
DClassicToken.java132 txt = txt.replaceAll("\n","\\\\n"); in toString()
133 txt = txt.replaceAll("\r","\\\\r"); in toString()
134 txt = txt.replaceAll("\t","\\\\t"); in toString()
DCommonToken.java182 txt = txt.replaceAll("\n","\\\\n"); in toString()
183 txt = txt.replaceAll("\r","\\\\r"); in toString()
184 txt = txt.replaceAll("\t","\\\\t"); in toString()
DBaseRecognizer.java336 s = s.replaceAll("\n","\\\\n"); in getTokenErrorDisplay()
337 s = s.replaceAll("\r","\\\\r"); in getTokenErrorDisplay()
338 s = s.replaceAll("\t","\\\\t"); in getTokenErrorDisplay()
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/
DDOTTreeGenerator.java212 text = text.replaceAll("\"", "\\\\\""); in fixString()
213 text = text.replaceAll("\\t", " "); in fixString()
214 text = text.replaceAll("\\n", "\\\\n"); in fixString()
215 text = text.replaceAll("\\r", "\\\\r"); in fixString()
/external/jdiff/src/jdiff/
DSingleComment.java26 id_ = id.replaceAll("<", "&lt;").replaceAll(">", "&gt;");; in SingleComment()
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
DAsYouTypeFormatter.java207 numberPattern = CHARACTER_CLASS_PATTERN.matcher(numberPattern).replaceAll("\\\\d"); in createFormattingTemplate()
210 numberPattern = STANDALONE_DIGIT_PATTERN.matcher(numberPattern).replaceAll("\\\\d"); in createFormattingTemplate()
235 String template = aPhoneNumber.replaceAll(numberPattern, numberFormat); in getFormattingTemplate()
237 template = template.replaceAll("9", digitPlaceholder); in getFormattingTemplate()
398 String formattedNumber = m.replaceAll(numFormat.getFormat()); in attemptToFormatAccruedDigits()
/external/jmonkeyengine/engine/src/tools/jme3tools/savegame/
DSaveGame.java41 …ystem.getStorageFolder().getAbsolutePath() + File.separator + gamePath.replaceAll("/", File.separa… in saveGame()
93 …ystem.getStorageFolder().getAbsolutePath() + File.separator + gamePath.replaceAll("/", File.separa… in loadGame()
/external/javassist/src/main/javassist/scopedpool/
DScopedClassPool.java175 classResourceName = classname.replaceAll("[\\.]", "/") in getCached()
180 .replaceAll("[\\.]", "/") in getCached()
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
DDebugEventSocketProxy.cs385 txt = StringExtensions.replaceAll(txt, "%", "%25"); // escape all escape char ;) in EscapeNewlines()
386 txt = StringExtensions.replaceAll(txt, "\n", "%0A"); // escape \n in EscapeNewlines()
387 txt = StringExtensions.replaceAll(txt, "\r", "%0D"); // escape \r in EscapeNewlines()
DRemoteDebugEventSocketListener.cs574 txt = StringExtensions.replaceAll(txt, "%0A", "\n"); // unescape \n in UnEscapeNewlines()
575 txt = StringExtensions.replaceAll(txt, "%0D", "\r"); // unescape \r in UnEscapeNewlines()
576 txt = StringExtensions.replaceAll(txt, "%25", "%"); // undo escaped escape chars in UnEscapeNewlines()
/external/easymock/src/org/easymock/internal/matchers/
DMatches.java37 buffer.append("matches(\"" + regex.replaceAll("\\\\", "\\\\\\\\") in appendTo()
DFind.java39 buffer.append("find(\"" + regex.replaceAll("\\\\", "\\\\\\\\") + "\")"); in appendTo()
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/
DDebugEventSocketProxy.java348 txt = txt.replaceAll("%","%25"); // escape all escape char ;) in escapeNewlines()
349 txt = txt.replaceAll("\n","%0A"); // escape \n in escapeNewlines()
350 txt = txt.replaceAll("\r","%0D"); // escape \r in escapeNewlines()
DRemoteDebugEventSocketListener.java515 txt = txt.replaceAll("%0A","\n"); // unescape \n in unEscapeNewlines()
516 txt = txt.replaceAll("%0D","\r"); // unescape \r in unEscapeNewlines()
517 txt = txt.replaceAll("%25","%"); // undo escaped escape chars in unEscapeNewlines()
/external/jmonkeyengine/engine/src/tools/jme3tools/converters/
DFolderConverter.java51 String name = file.getName().replaceAll("[\\/\\.]", "_"); in process()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src_rss/org/eclipse/releng/generators/rss/
DRSSFeedAddEntryTask.java219 this.buildType = buildID.replaceAll("[^NIMSR]", NS); //$NON-NLS-1$ in setBuildType()
574replaceAll(Messages.getString("RSSFeedAddEntryTask.BranchKeyword"), branch).replaceAll(Messages.ge… in varSub()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DStringExtensions.cs103 public static string replaceAll( this string str, string regex, string newValue ) in replaceAll() method in Antlr.Runtime.JavaExtensions.StringExtensions
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DErrorManager.java297 msg = msg.replaceAll("\n", " ");
305 outputMsg = outputMsg.replaceAll("\n", " ");
313 outputMsg = outputMsg.replaceAll("\n", " ");
321 outputMsg = outputMsg.replaceAll("\n", " ");
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/
DStringExtensions.cs107 public static string replaceAll( string str, string regex, string newValue ) in replaceAll() method in Antlr.Runtime.JavaExtensions.StringExtensions
/external/icu4c/test/intltest/
Dregextst.cpp1333 dest = matcher->replaceAll("yz", status); in API_Replace()
1346 dest = matcher->replaceAll("yz", status); in API_Replace()
1359 dest = matcher->replaceAll("yz", status); in API_Replace()
1371 dest = matcher->replaceAll("", status); in API_Replace()
1384 dest = matcher->replaceAll("xyz", status); in API_Replace()
1425 UnicodeString result = matcher->replaceAll(substitute, status); in API_Replace()
1433 UnicodeString result = matcher->replaceAll(substitute, status); in API_Replace()
2426 result = matcher->replaceAll(&replText, NULL, status); in API_Replace_UTF8()
2433 result = matcher->replaceAll(&replText, &destText, status); in API_Replace_UTF8()
2454 result = matcher->replaceAll(&replText, NULL, status); in API_Replace_UTF8()
[all …]
/external/doclava/src/com/google/doclava/
DProofread.java69 s = m.replaceAll(NEWLINE); in writeIndented()
/external/jsilver/src/com/google/clearsilver/jsilver/compiler/
DCompilingClassLoader.java202 return new URI(className.replaceAll("\\.", "/") + Kind.SOURCE.extension);

123