Zoom

com.github.arturopala.gitignore.Zoom
See theZoom companion object
final class Zoom(input: CharSequence)

A Mutable wrapper of the character sequence. Helps track different lookup operations.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def contour: (Int, Int)
def contourLength: Int
def copy: Zoom

Exact copy of this Zoom.

Exact copy of this Zoom.

Attributes

Copy frame and reset contour.

Copy frame and reset contour.

Attributes

def end(): Int
def flipFrame(other: Zoom, leftSide: Boolean): Boolean

Move this frame on the left or the right side of the other Zoom's contour.

Move this frame on the left or the right side of the other Zoom's contour.

Attributes

def frame: (Int, Int)
def frameWidth: Int
def hasContour: Boolean
def indexOf(string: String): Int

Similar to String.indexOf

Similar to String.indexOf

Attributes

def intersectContour(other: Zoom): Boolean

Intersect contours.

Intersect contours.

Attributes

def isEmpty: Boolean
def lastIndexOf(string: String): Int

Similar to String.lastIndexOf

Similar to String.lastIndexOf

Attributes

def left: Int
def lookupFor(string: String): Boolean

Lookup for the given string from both sides.

Lookup for the given string from both sides.

Attributes

def lookupLeftFor(string: String, maxDistance: Int): Boolean

Lookup for the given string from the right side.

Lookup for the given string from the right side.

Attributes

def lookupLeftUntil(check: Char => Boolean, minSteps: Int, maxSteps: Int): Boolean

Lookup from right until check succeeds.

Lookup from right until check succeeds.

Attributes

def lookupLeftWhile(check: Char => Boolean, maxSteps: Int): Boolean

Lookup from the right side while check succeeds.

Lookup from the right side while check succeeds.

Attributes

def lookupRightFor(string: String, maxDistance: Int): Boolean

Lookup for the given string from the left side.

Lookup for the given string from the left side.

Attributes

def lookupRightUntil(check: Char => Boolean, minSteps: Int, maxSteps: Int): Boolean

Lookup from the left side until check succeeds.

Lookup from the left side until check succeeds.

Attributes

def lookupRightWhile(check: Char => Boolean, maxSteps: Int): Boolean

Lookup from the left side while check succeeds.

Lookup from the left side while check succeeds.

Attributes

def lookupWhile(check: Char => Boolean, maxSteps: Int): Boolean
def lookupWhileNot(check: Char => Boolean, minSteps: Int, maxSteps: Int): Boolean
def maxElseBottom: Int
def maxElseTop: Int
def merge(other: Zoom): Boolean

Merge contours and frames.

Merge contours and frames.

Attributes

def minElseBottom: Int
def minElseTop: Int
def noGapBetweenContours(other: Zoom): Boolean
def noOverlapBetweenContours(other: Zoom): Boolean
def nonEmpty: Boolean
final def prettyPrint: String
def resizeFrame(distance: Int, leftSide: Boolean): Unit

Change frame boundary on the left or the right side.

Change frame boundary on the left or the right side.

Attributes

def right: Int
def setFrame(from: Int, to: Int): Zoom
def squeezeRightOrLeft(offset: Int, minWidth: Int, maxTo: Int): Boolean
def start(): Int
def takeAll(): Boolean
def takeAllFromLeft(): Boolean

Expand contour from the left side.

Expand contour from the left side.

Attributes

def takeAllFromRight(): Boolean

Expand contour from the right side.

Expand contour from the right side.

Attributes

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
def unionContour(other: Zoom): Boolean

Union contours.

Union contours.

Attributes