_copy

trait _copy extends _copy
trait _copy
class java.lang.Object
trait scala.Matchable
class Any
trait _methods
class String.Opaque.Data[String.Opaque.Data.A]
object Fx.Style

Def

inline def dropFirst(cnt: Int): THIS_OPAQUE

Copy without start

Copy without start

Copies without given number of first characters

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

Inherited from
_copy
Source
_copy.scala
inline def dropLast(cnt: Int): THIS_OPAQUE

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)

Inherited from
_copy
Source
_copy.scala
inline def dropRange(r: Int.Range): THIS_OPAQUE

Copy without range

Copy without range

Copies without range of characters specified

Inherited from
_copy
Source
_copy.scala
inline def dropRange(start: Int, size: Int): THIS_OPAQUE

Copy without range

Copy without range

Copies without range of characters specified

Inherited from
_copy
Source
_copy.scala
inline def takeAfter(v: THIS_OPAQUE | String, dflt: Opt[THIS_OPAQUE], from: Int.Opt): THIS_OPAQUE

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

Inherited from
_copy
Source
_copy.scala
inline def takeAfterLast(v: THIS_OPAQUE | String, dflt: Opt[THIS_OPAQUE], from: Int.Opt): THIS_OPAQUE

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

Inherited from
_copy
Source
_copy.scala
inline def takeBefore(v: THIS_OPAQUE | String, dflt: Opt[THIS_OPAQUE], from: Int.Opt): THIS_OPAQUE

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

Inherited from
_copy
Source
_copy.scala
inline def takeBeforeLast(v: THIS_OPAQUE | String, dflt: Opt[THIS_OPAQUE], from: Int.Opt): THIS_OPAQUE

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

Inherited from
_copy
Source
_copy.scala
inline def takeFirst(cnt: Int): THIS_OPAQUE

Copy start

Copy start

Copies first given number of characters

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

Inherited from
_copy
Source
_copy.scala
inline def takeFrom(v: THIS_OPAQUE | String, dflt: Opt[THIS_OPAQUE], from: Int.Opt): THIS_OPAQUE

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

Inherited from
_copy
Source
_copy.scala
inline def takeFromLast(v: THIS_OPAQUE | String, dflt: Opt[THIS_OPAQUE], from: Int.Opt): THIS_OPAQUE

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

Inherited from
_copy
Source
_copy.scala
inline def takeLast(cnt: Int): THIS_OPAQUE

Copy end

Copy end

Copies last given number of characters

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

Inherited from
_copy
Source
_copy.scala
inline def takeRange(r: Int.Range): THIS_OPAQUE

Copy range

Copy range

Copies only range of characters specified

Inherited from
_copy
Source
_copy.scala
inline def takeRange(start: Int, size: Int): THIS_OPAQUE

Copy range

Copy range

Copies only range of characters specified

Inherited from
_copy
Source
_copy.scala