t

Custom.String._library._modify

trait _modify[TYPE] extends Any.Datum[TYPE, String]

Ordering
  1. Alphabetic
Inherited
  1. String._library._modify
  2. Any.Datum
  3. Any.Wrap
  4. 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 equals(arg0: Any): Boolean
    Definition Classes
    Any
  3. def hashCode(): Int
    Definition Classes
    Any
  4. def insertAt(i: Int, v: String): TYPE

    Insert at position

    Insert at position

    Creates new String with real inserted at the specified position

    "0123456789".insertAt(5,"abc") lp // Prints: 01234abc56789
    Definition Classes
    _modify
  5. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  6. def label: TYPE

    Capitalize

    Capitalize

    Capitalizes first character of every word (separated by white spaces)

    "all string ops".label lp // Prints: All String Ops
    Definition Classes
    _modify
  7. def lower: TYPE

    toLowerCase

    toLowerCase

    Creates new String with all upper case Chars changed to lower case

    "ABc".lower lp // Prints: abc
    Definition Classes
    _modify
  8. abstract def make(v: String): TYPE
    Attributes
    protected
    Definition Classes
    _Trait
  9. def padEndTo(targetLength: Int, pad: String = " "): TYPE

    Pad end

    Pad end

    Pads end of string to targetLength

    pad

    string to pad with.

    "ABC".padEndTo(10,"_") lp // Prints: ABC_______
    Definition Classes
    _modify
  10. def padStartTo(targetLength: Int, pad: String = " "): TYPE

    Pad start

    Pad start

    Pads start of string to targetLength

    pad

    string to pad with.

    "ABC".padStartTo(10,"_") lp // Prints: _______ABC
    Definition Classes
    _modify
  11. abstract def real: String
    Attributes
    protected
    Definition Classes
    _Trait
  12. def remove(sub: String): TYPE

    Remove all

    Remove all

    Creates new String with all occurrences of real removed

    "123123123123".remove("2") lp // Prints: 13131313
    Definition Classes
    _modify
  13. def replace(value: String, target: String): TYPE

    Replace all

    Replace all

    Creates new String with all occurrences of real replaced with target

    "123123123123".replace("2","_") lp // Prints: 1_31_31_31_3
    Definition Classes
    _modify
  14. def replace(r: Idx.Range, v: String): TYPE

    Replace range with real

    Replace range with real

    Creates new String with all occurrences of real replaced with target

    "0123456789".replace(3 <> 7 ,"_") lp // Prints: 012_89
    Definition Classes
    _modify
  15. def toString(): String
    Definition Classes
    Any
  16. def trim: TYPE

    Trim both ends

    Trim both ends

    Trims both ends of String from space Chars

    Definition Classes
    _modify
  17. def trimBoth(f: (Char) ⇒ Boolean): TYPE

    Trim both ends

    Trim both ends

    Trims both ends of String from Chars defined by filter function

    "yyzzxxABCzzyyxx".trimBoth('x' <> 'z') lp                // Prints: ABC
    
    "yyzzxxABCzzyyxx".trimBoth(c => c == 'x' || c == 'y') lp // Prints: zzxxABCzz
    Definition Classes
    _modify
  18. def trimEnd(f: (Char) ⇒ Boolean): TYPE

    Trim both ends

    Trim both ends

    Trims end of String from Chars defined by filter function

    "ABCzzyyxx".trimEnd('x' <> 'z') lp                // Prints: ABC
    
    "ABCzzyyxx".trimEnd(c => c == 'x' || c == 'y') lp // Prints: ABCzz
    Definition Classes
    _modify
  19. def trimEnd: TYPE

    Trim end

    Trim end

    Trims end of String from space Chars

    Definition Classes
    _modify
  20. def trimStart(f: (Char) ⇒ Boolean): TYPE

    Trim start

    Trim start

    Trims start of String from Chars defined by filter function

    "yyzzxxABC".trimBoth('x' <> 'z') lp                // Prints: ABC
    
    "yyzzxxABC".trimBoth(c => c == 'x' || c == 'y') lp // Prints: zzxxABC
    Definition Classes
    _modify
  21. def trimStart: TYPE

    Trim start

    Trim start

    Trims start of String from space Chars

    Definition Classes
    _modify
  22. def upper: TYPE

    toUpperCase

    toUpperCase

    Creates new String with all lower case Chars changed to upper case

    "aBc".upper lp // Prints: ABC
    Definition Classes
    _modify

Operator

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def +(v: Any): TYPE

    Plus

    Plus

    Creates a new instance with specified value added

    Definition Classes
    _modify
  4. def +-(v: Any): TYPE
    Definition Classes
    _modify
  5. def +~(v: ~[Any]): TYPE

    Plus all

    Plus all

    Creates a new instance with added stream values

    Definition Classes
    _modify
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
Linear Supertypes
Any.Datum[TYPE, String], Any.Wrap[String], Any
Source: _modify.scala