Move native RegExp to kotlin.text.js package
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
package kotlin.text
|
package kotlin.text
|
||||||
|
|
||||||
|
import kotlin.text.js.*
|
||||||
import java.util.ArrayList
|
import java.util.ArrayList
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package kotlin.js
|
package kotlin.text.js
|
||||||
|
|
||||||
|
|
||||||
native public class RegExp(pattern: String, flags: String? = null) {
|
native public class RegExp(pattern: String, flags: String? = null) {
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
package kotlin.js
|
package kotlin.js
|
||||||
|
|
||||||
|
import kotlin.text.js.RegExp
|
||||||
|
|
||||||
|
|
||||||
native public fun String.toUpperCase() : String = noImpl
|
native public fun String.toUpperCase() : String = noImpl
|
||||||
|
|
||||||
native public fun String.toLowerCase() : String = noImpl
|
native public fun String.toLowerCase() : String = noImpl
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package kotlin.js
|
package kotlin.js
|
||||||
|
|
||||||
import kotlin.text.Regex
|
import kotlin.text.Regex
|
||||||
|
import kotlin.text.js.RegExp
|
||||||
|
|
||||||
// TODO: make internal
|
// TODO: make internal
|
||||||
public inline fun String.nativeIndexOf(ch : Char, fromIndex : Int) : Int = nativeIndexOf(ch.toString(), fromIndex)
|
public inline fun String.nativeIndexOf(ch : Char, fromIndex : Int) : Int = nativeIndexOf(ch.toString(), fromIndex)
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
package test.js
|
package test.js
|
||||||
|
|
||||||
|
import kotlin.text.js.*
|
||||||
|
|
||||||
import kotlin.test.*
|
import kotlin.test.*
|
||||||
import org.junit.Test as test
|
import org.junit.Test as test
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user