implicit final class ApsoString extends AnyVal
Implicit class that provides new methods for strings.
- Alphabetic
- By Inheritance
- ApsoString
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ApsoString(s: String)
- s
the string to which the new methods are provided.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val s: String
-
def
toString(): String
- Definition Classes
- Any
Deprecated Value Members
-
def
enumerate(n: Int): IndexedSeq[String]
Enumerates all the strings of a given length using the characters of this string as alphabet.
Enumerates all the strings of a given length using the characters of this string as alphabet.
- n
the number of letters of each returned string
- returns
a sequence of strings of length
nconsisting of characters from this string.
- Annotations
- @deprecated
- Deprecated
(Since version 2017/07/13) This will be removed in a future version
-
def
getBytesWithNullTerminator: Array[Byte]
Returns the UTF-8 byte array representation of this string with a trailing zero byte.
Returns the UTF-8 byte array representation of this string with a trailing zero byte.
- returns
the UTF-8 byte array representation of this string with a trailing zero byte.
- Annotations
- @deprecated
- Deprecated
(Since version 2017/07/13) This will be removed in a future version
-
def
padLeft(length: Int, ch: Char): String
Pads this string on the left to a given length.
Pads this string on the left to a given length.
- length
the length to which this string is to be padded
- ch
the character used to fill the string
- returns
the padded string.
- Annotations
- @deprecated
- Deprecated
(Since version 2017/07/13) This will be removed in a future version