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

io.github.humbleui.skija.shaper.TrivialBidiRunIterator Maven / Gradle / Ivy

package io.github.humbleui.skija.shaper;

import java.util.*;
import org.jetbrains.annotations.*;
import io.github.humbleui.skija.*;

public class TrivialBidiRunIterator implements Iterator {
    @ApiStatus.Internal public final int _length;
    @ApiStatus.Internal public final int _level;
    @ApiStatus.Internal public boolean _atEnd;
    
    public TrivialBidiRunIterator(String text, int level) {
        _length = text.length();
        _level  = level;
        _atEnd  = _length == 0;
    }

    @Override
    public BidiRun next() {
        _atEnd = true;
        return new BidiRun(_length, _level);
    }

    @Override
    public boolean hasNext() {
        return !_atEnd;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy