Skip to content

Juuxel/LeafThrough

Repository files navigation

Leaf Through

leaf through

  1. To turn the pages of (a book) idly, reading short sections at random.

A small string reading library for Kotlin.

val reader = StringReader("hello (world)")
val hello = reader.readUntil(' ', peek = true) // does not move the cursor
hello.readUntil('(') // "hello "
hello.expect('(') // throws if the next character is not '('

Usage

You can get it from my Bintray repository (might be on JCenter in the future).

Gradle:

repositories {
    maven {
        url = uri("https://dl.bintray.com/juuxel/maven")
    }
}

dependencies {
    implementation("io.github.juuxel:leaf-through:1.3.1")
}

About

A small string reading library for Kotlin.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages