Fixing example code
This commit is contained in:
@@ -56,6 +56,6 @@ namespace io {
|
||||
|
||||
namespace string {
|
||||
fun String.replaceAll(pattern : String, replacement : String) : String {
|
||||
return java.util.regex.Pattern.compile(pattern).matcher(this).replaceAll(replacement).npe()
|
||||
return (this as java.lang.String).replace(pattern as CharSequence, replacement as CharSequence).npe()
|
||||
}
|
||||
}
|
||||
@@ -15,5 +15,4 @@ fun main(args : Array<String>) {
|
||||
// Note: \u000A is Unicode representation of linefeed (LF)
|
||||
val c : Char = 0x000A .chr;
|
||||
println(c);
|
||||
println("a\u \u0 \u00 \u000 \u0000 \u0AaA \u0AAz.length( ) + \u0022b")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user