_copy
- Source
- _copy.scala
Def
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
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
Copy without range
Copy without range
Copies without range of characters specified
- Source
- _copy.scala
Copy without range
Copy without range
Copies without range of characters specified
- Source
- _copy.scala
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
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
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
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
Copy start
Copy start
Copies first given number of characters
The method call is inlined as Java x.substring(0,cnt)
- Source
- _copy.scala
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
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
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