Move native RegExp to kotlin.text.js package

This commit is contained in:
Ilya Gorbunov
2015-04-14 21:23:00 +03:00
parent a5177b785d
commit 908864b0c0
5 changed files with 8 additions and 1 deletions
+1
View File
@@ -16,6 +16,7 @@
package kotlin.text
import kotlin.text.js.*
import java.util.ArrayList
/**
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package kotlin.js
package kotlin.text.js
native public class RegExp(pattern: String, flags: String? = null) {
+3
View File
@@ -1,5 +1,8 @@
package kotlin.js
import kotlin.text.js.RegExp
native public fun String.toUpperCase() : String = noImpl
native public fun String.toLowerCase() : String = noImpl
+1
View File
@@ -1,6 +1,7 @@
package kotlin.js
import kotlin.text.Regex
import kotlin.text.js.RegExp
// TODO: make internal
public inline fun String.nativeIndexOf(ch : Char, fromIndex : Int) : Int = nativeIndexOf(ch.toString(), fromIndex)
+2
View File
@@ -16,6 +16,8 @@
package test.js
import kotlin.text.js.*
import kotlin.test.*
import org.junit.Test as test