_copy

trait _copy
class java.lang.Object
trait scala.Matchable
class Any

Def

inline def dropFirst(cnt: Int): String

Copy without start

Copy without start

Copies without given number of first characters

The method call is inlined as Java .substring(cnt)

Source
_copy.scala
inline def dropLast(cnt: Int): String

Copy without end

Copy without end

Copies without given number of last characters

The method call is inlined as Java x.substring(0, x.length - cnt)

Source
_copy.scala
inline def dropRange(start: Int, size: Int): String

Copy without range

Copy without range

Copies without range of characters specified

Source
_copy.scala
inline def dropRange(i: Int.Range): String

Copy without range

Copy without range

Copies without range of characters specified

Source
_copy.scala
inline def takeAfter(v: String, dflt: Opt[String], fromPosition: Int.Opt): String

Copy end

Copy end

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

If no v found, dflt v is returned, or original if dflt is void

   "abcdefg".copyAfter("cd").tp // Prints: efg
Value Params
string

position to start looking from

Source
_copy.scala
inline def takeAfterLast(v: String, dflt: Opt[String], fromPosition: Int.Opt): String

Copy end

Copy end

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

If no v found, dflt v is returned, or original if dflt is void.

   "abcd_abcd_abcd".takeFromLast("ab").tp // Prints: cd
Value Params
from

string last position to start looking from end to start

Source
_copy.scala
inline def takeBefore(v: String, dflt: Opt[String], fromPosition: Int.Opt): String

Copy start

Copy start

Copies String from the beginning until specified v found

If no v found, dflt v is returned, or original if dflt is void

   "abcdefg".takeBefore("ef").tp // Prints: abcd
Value Params
string

position to start looking from

Source
_copy.scala
inline def takeBeforeLast(v: String, dflt: Opt[String], fromPosition: Int.Opt): String

Copy start

Copy start

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

If no v found, dflt v is returned, or original if dflt is void

   "abcd_abcd_abcd".copyBeforeLast("ab").tp // Prints: abcd_abcd_
Value Params
from

string last position to start looking from end to start

Source
_copy.scala
inline def takeFirst(cnt: Int): String

Copy start

Copy start

Copies first given number of characters

The method call is inlined as Java x.substring(0,cnt)

Source
_copy.scala
inline def takeFrom(v: String, dflt: Opt[String], fromPosition: Int.Opt): String

Copy end

Copy end

Copies String from the position where the specified v found

If no v found, dflt v is returned, or original if dflt is void

   "abcdefg".takeFrom("cd").tp // Prints: cdefg
Value Params
string

position to start looking from

Source
_copy.scala
inline def takeFromLast(v: String, dflt: Opt[String], fromPosition: Int.Opt): String

Copy end

Copy end

Copies String from the last position the specified v found

If no v found, dflt v is returned, or original if dflt is void.

   "abcd_abcd_abcd".takeFromLast("ab").tp // Prints: abcd
Value Params
from

string last position to start looking from end to start

Source
_copy.scala
inline def takeLast(cnt: Int): String

Copy end

Copy end

Copies last given number of characters

The method call is inlined as Java x.substring(x.length - cnt, x.length)

Source
_copy.scala
inline def takeRange(start: Int, size: Int): String

Copy range

Copy range

Copies only range of characters specified

Source
_copy.scala
inline def takeRange(r: Int.Range): String

Copy range

Copy range

Copies only range of characters specified

Source
_copy.scala