commonMain.org.intellij.markdown.html.CommonDefs.kt Maven / Gradle / Ivy
package org.intellij.markdown.html
expect class URI(str: String) {
fun resolve(str: String): URI
}
fun URI.resolveToStringSafe(str: String): String {
return try {
resolve(str).toString()
}
catch (e: Throwable) {
str
}
}
expect class BitSet(size: Int){
val size: Int
fun get(index: Int): Boolean
fun set(index: Int, value: Boolean)
}
inline fun BitSet.clear(index: Int) =
set(index, false)
expect class IntStack() {
fun push(e: Int)
fun pop(): Int
fun isEmpty(): Boolean
}
expect fun isWhitespace(char: Char): Boolean
expect fun isPunctuation(char: Char): Boolean
expect fun urlEncode(str: String): String
© 2015 - 2025 Weber Informatics LLC | Privacy Policy