All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.org.jetbrains.skia.shaper.TrivialLanguageRunIterator.kt Maven / Gradle / Ivy

There is a newer version: 0.8.15
Show newest version
package org.jetbrains.skia.shaper

class TrivialLanguageRunIterator(text: String, language: String) : MutableIterator {
    val _length: Int

    val _language: String

    internal var _atEnd: Boolean
    override fun next(): LanguageRun {
        _atEnd = true
        return LanguageRun(_length, _language)
    }

    override fun hasNext(): Boolean {
        return !_atEnd
    }

    init {
        _length = text.length
        _language = language
        _atEnd = _length == 0
    }

    override fun remove() {
        TODO("Not yet implemented")
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy