t

Custom.String._library._substring

trait _substring[TYPE] extends Any.Datum[TYPE, String] with Any.Able.CopyRange[TYPE]

This trait provides some copy overloads, which at first glance seem to be unnesasary, but they proved to bring semantic clarity in the code.

Ordering
  1. Alphabetic
Inherited
  1. String._library._substring
  2. Any.Able.CopyRange
  3. Any.Datum
  4. Any.Wrap
  5. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Method

  1. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  2. def copy(r: Idx.Range): TYPE

    Copy range

    Copy range

    Copies elements within the range specified

    // Generic String example
    "abcdefghi".copy(3 <> 5).lp  // Prints: def
    Definition Classes
    _substringCopyRange
  3. def copyAfter(sub: String, default: Opt[String] = \/, from: Opt.Int = \/): TYPE

    Copy end

    Copy end

    Copies String from the position where the specified real found plus the length of the real

    If no real found, default real is returned, or original if default is void

    "abcdefg".copyAfter("cd") lp // Prints: efg
    Definition Classes
    _substring
  4. def copyAfterLast(sub: String, default: Opt[String] = \/, from: Opt.Int = \/): TYPE

    Copy end

    Copy end

    Copies String from the last position the specified real found plus the length of the real

    If no real found, default real is returned, or original if default is void.

    "abcd_abcd_abcd".copyFromLast("ab") lp // Prints: cd
    from

    string last position to start looking from end to start

    Definition Classes
    _substring
  5. def copyBefore(sub: String, default: Opt[String] = \/, from: Opt.Int = \/): TYPE

    Copy start

    Copy start

    Copies String from the beginning until specified real found

    If no real found, default real is returned, or original if default is void

    "abcdefg".copyBefore("ef") lp // Prints: abcd
    Definition Classes
    _substring
  6. def copyBeforeLast(sub: String, default: Opt[String] = \/, from: Opt.Int = \/): TYPE

    Copy start

    Copy start

    Copies String from the beginning until the last occurrence of specified real found

    If no real found, default real is returned, or original if default is void

    "abcd_abcd_abcd".copyBeforeLast("ab") lp // Prints: abcd_abcd_
    from

    string last position to start looking from end to start

    Definition Classes
    _substring
  7. def copyDrop(r: Idx.Range): TYPE

    Copy without range

    Copy without range

    Copies elements outside the range specified

    // Generic String example
    "abcdefghi".copyDrop(3 <> 5).lp  // Prints: abcghi
    Definition Classes
    _substringCopyRange
  8. def copyFirst(number: Int): TYPE

    Copy start

    Copy start

    Copies specified number of first elements

    // Generic String example
    "abcdefghi".copyFirst(3).lp  // Prints: abc
    Definition Classes
    CopyRange
  9. def copyFrom(sub: String, default: Opt[String] = \/, from: Opt.Int = \/): TYPE

    Copy end

    Copy end

    Copies String from the position where the specified real found

    If no real found, default real is returned, or original if default is void

    "abcdefg".copyFrom("cd") lp // Prints: cdefg
    Definition Classes
    _substring
  10. def copyFrom(position: Int): TYPE

    Copy end

    Copy end

    Copies elements from specified position to the end

    // Generic String example
    "abcdefghi".copyFrom(5).lp  // Prints: fghi
    Definition Classes
    CopyRange
  11. def copyFromLast(sub: String, default: Opt[String] = \/, from: Opt.Int = \/): TYPE

    Copy end

    Copy end

    Copies String from the last position the specified real found

    If no real found, default real is returned, or original if default is void.

    "abcd_abcd_abcd".copyromLast("ab") lp // Prints: abcd
    from

    string last position to start looking from end to start

    Definition Classes
    _substring
  12. def copyFull: TYPE

    Copy everything

    Copy everything

    Copies entire content

    Definition Classes
    CopyRange
  13. def copyLast(number: Int): TYPE

    Copy end

    Copy end

    Copies specified number of elements at the end

    // Generic String example
    "abcdefghi".copyLast(3).lp  // Prints: ghi
    Definition Classes
    CopyRange
  14. def copyShort(cnt: Int): TYPE

    Copy without end

    Copy without end

    Copies from the beginning, missing specified number of elements at the end

    // Generic String example
    "abcdefghi".copyShort(3).lp  // Prints: abcdef
    Definition Classes
    CopyRange
  15. def equals(arg0: Any): Boolean
    Definition Classes
    Any
  16. def hashCode(): Int
    Definition Classes
    Any
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. abstract def make(v: String): TYPE
    Attributes
    protected
    Definition Classes
    _Trait
  19. abstract def real: String
    Attributes
    protected
    Definition Classes
    _Trait
  20. def size: Int

    Container size

    Container size

    Notion of a range is only valid in presence of size

    Definition Classes
    _substringCopyRange
  21. def toString(): String
    Definition Classes
    Any

Operator

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
Linear Supertypes
Any.Able.CopyRange[TYPE], Any.Datum[TYPE, String], Any.Wrap[String], Any
Source: _substring.scala