implicit final class Strings extends AnyVal
Common utility methods to deal with Strings.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Strings
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Strings(str: String)
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 count(c: Char): Int
Returns the number of occurrences of a given char into an String.
- def decode(ignoreErrors: Boolean): String
Parse a String with escape sequences.
Parse a String with escape sequences. Ignore encoding errors
- def decode: String
Parse a String with escape sequences.
- def encode(encodeNonAscii: Boolean): String
- def encode: String
- def equalsIgnoreSpaces(str2: String): Boolean
Compare two Strings ignoring the spaces in each
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNullOrEmpty: Boolean
Check if the String is null or empty
- def isOnlyAscii: Boolean
Returns true if all characters are ascii
- def nonNullNorEmpty: Boolean
Check if the String is not null and non empty
- def notNull: String
If the String is not null returns the String, else returns "".
- def quoted: String
Add quotes to the string.
Add quotes to the string. If the string already has quotes, returns the same string
- def replaceExtension(newExt: String): String
Interpreting the string as a file name replace The extension
- val str: String
- def stripSpaces: String
- def toPunnycode: String
- def toString(): String
- Definition Classes
- Any