CharsOff

ostrat.CharsOff
See theCharsOff companion object
final class CharsOff(val offset0: Int) extends AnyVal, ArrBaseOff[Char, CharArr]

Immutable heapless iterator for Char arrays. At runtime this should just be an integer which indexes into a CharArr. This it self is just a compile time wrapped Array[Char]. This allows you to decompose the Char Array without having to create a new Array each time you drop a character or characters.

Attributes

Companion
object
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

override def apply(index: Int)(implicit chars: CharArr): Char

Index's into the backing Array, which is passed by an implicit parameter.

Index's into the backing Array, which is passed by an implicit parameter.

Attributes

Definition Classes
def drop(n: Int): CharsOff
inline def drop1: CharsOff
inline def drop2: CharsOff
inline def drop3: CharsOff
inline def drop4: CharsOff
def ifHead(f: Char => Boolean)(implicit chars: CharArr): Boolean

Checks condition against head. Returns false if the collection is empty.

Checks condition against head. Returns false if the collection is empty.

Attributes

def length(implicit chars: CharArr): Int
def span(p: Char => Boolean)(implicit array: CharArr): (CharArr, CharsOff)
def str: String
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def forN(endIndex: Int, p: Char => Boolean)(implicit arr: CharArr): Boolean

Attributes

Inherited from:
ArrBaseOff
def forRange(startIndex: Int, endIndex: Int, p: Char => Boolean)(implicit arr: CharArr): Boolean

Attributes

Inherited from:
ArrBaseOff
def forall(p: Char => Boolean)(implicit arr: CharArr): Boolean

Attributes

Inherited from:
ArrBaseOff
def lenStr(implicit arr: CharArr): String

Attributes

Inherited from:
ArrBaseOff
def notPredicateLength(p: Char => Boolean)(implicit arr: CharArr): Int

Attributes

Inherited from:
ArrBaseOff
inline def offset1: Int

Attributes

Inherited from:
ArrBaseOff
inline def offset2: Int

Attributes

Inherited from:
ArrBaseOff
inline def offset3: Int

Attributes

Inherited from:
ArrBaseOff
inline def offset4: Int

Attributes

Inherited from:
ArrBaseOff
def predicateLength(p: Char => Boolean)(implicit arr: CharArr): Int

Attributes

Inherited from:
ArrBaseOff

Concrete fields

val offset0: Int