We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41e4fb0 commit fc571c1Copy full SHA for fc571c1
src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
@@ -2540,6 +2540,10 @@ public static String flip(String str) {
2540
return new StringBuffer(str).reverse().toString();
2541
}
2542
2543
+ public static String replace(String str, long offset, long count, String repl) {
2544
+ return new StringBuffer(str).replace((int)offset, (int)(offset + count), repl).toString();
2545
+ }
2546
+
2547
/* Brute force, but not normally needed for most programs. */
2548
private static HashMap<String, Character> cpNameMap;
2549
public static long codepointfromname(String name) {
0 commit comments