t

Custom.String._library._evaluate

trait _Trait[TYPE] extends _compare[TYPE] with _search[TYPE] with _check[TYPE]

Ordering
  1. Alphabetic
Inherited
  1. String._library._evaluate
  2. String._library._evaluate._check
  3. String._library._evaluate._search
  4. String._library._evaluate._compare
  5. Any.Datum
  6. Any.Wrap
  7. java.lang.Comparable
  8. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Method

  1. def allIndexesOf(sub: String, from: Opt.Int = \/): ~[Int]

    Stream of indexes

    Stream of indexes

    Stream of indexes for each occurrence of real

    "abcd_abcd_abcd_abcd_abcd".allIndexesOf("bc") lp // Prints: ~(1, 6, 11, 16, 21)
    from

    position to start looking from

    Definition Classes
    _search
  2. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  3. def charAt(i: Int): Char

    Char at position

    Char at position

    Returns Char at the specified position

    Definition Classes
    _search
  4. def charAtOpt(i: Int): Opt[Char]

    Char at position

    Char at position

    Optionally Returns Char at the specified position

    Opt.Void is returned if specified position is out of String range

    if(<name>.charAtOpt(2).let(_.isUpper)) App.Fail.toDo
    // is equivalent
    if(<name>.length >=2 && <name>.charAt(2).isUpper) App.Fail.toDo
    Definition Classes
    _search
  5. def charIndexOpt(f: (Char) ⇒ Boolean, from: Opt.Int = \/): Opt.Int

    Char index

    Char index

    Optionally returns index of the first Char passing the filter function

    "abcd_abcd_".charIndexOpt(_ >= 'd', 4) lp // Prints: Opt(8)
    "abcd_abcd_".charIndexOpt('x' <> 'z') lp  // Prints: Opt.Void
    from

    position to start looking from

    Definition Classes
    _search
  6. def compareTo(that: String): Int
    Definition Classes
    _compare → Comparable
  7. def contains(sub: String): Boolean

    Contains check

    Contains check

    Returns true is this String contains that String

    "abc".contains("cd") lp // Prints: false
    Definition Classes
    _check
  8. def endsWith(sub: String): Boolean

    Check if ends with

    Check if ends with

    Returns true this String ends with that String

    "abc".endsWith("bc") lp // Prints: true
    Definition Classes
    _check
  9. def equals(arg0: Any): Boolean
    Definition Classes
    Any
  10. def equalsIgnoreCase(v: String): Boolean

    Check if equals ignore case

    Check if equals ignore case

    Returns true this and that String are equal, if upper and lower case Chars are considered equal

    "aBc".equalsIgnoreCase("ABC").lp // Prints: true
    Definition Classes
    _check
  11. def hashCode(): Int
    Definition Classes
    Any
  12. def indexOfOpt(sub: String, from: Opt.Int = \/): Opt.Int

    Value position

    Value position

    Optionally returns position of the specified real

    "abcd_abcd_".indexOfOpt("d_a") lp // Prints: Opt(3)
    from

    position to start looking from

    Definition Classes
    _search
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def isLike(mask: String, ignoreCase: Boolean = false): Boolean

    Check if pattern

    Check if pattern

    Returns true if this matches that pattern with '%' wild card

    "ABCD".isLike("AB%") lp  // Prints: true
    "ABCD".isLike("AC%") lp  // Prints: false
    ignoreCase

    if true upper and lower case Chars are considered equal

    Definition Classes
    _check
  15. def isVoid: Boolean
    Definition Classes
    _check
  16. def lastCharIndexOpt(f: (Char) ⇒ Boolean, fromOpt: Opt.Int = \/): Opt.Int

    Char index

    Char index

    Optionally returns index of the last Char passing the filter function

    "abcd_abcd_".lastCharIndexOpt(_ >= 'd', 4) lp // Prints: Opt(3)
    "abcd_abcd_".lastCharIndexOpt('x' <> 'z') lp  // Prints: Opt.Void
    Definition Classes
    _search
  17. def lastIndexOfOpt(sub: String, from: Opt.Int = \/): Opt.Int

    Value position

    Value position

    Optionally returns last position of the specified real

    "abcd_abcd_abcd_".lastIndexOfOpt("d_a") lp // Prints: Opt(8)
    from

    last position to start looking from end to start

    Definition Classes
    _search
  18. abstract def make(v: String): TYPE
    Attributes
    protected
    Definition Classes
    _Trait
  19. abstract def real: String
    Attributes
    protected
    Definition Classes
    _Trait
  20. abstract def size: Int
    Attributes
    protected
    Definition Classes
    _search
  21. def startsWith(sub: String): Boolean

    Check if begins with

    Check if begins with

    Returns true this String starts with that String

    "abc".startsWith("ab") lp // Prints: true
    Definition Classes
    _check
  22. 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