final class RichCharSequence extends AnyVal
Provides additional functionality for java.lang.CharSequence
- Source
- RichCharSequence.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RichCharSequence
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new RichCharSequence(s: CharSequence)
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 containsIgnoreCase(target: CharSequence): Boolean
- def containsNormalized(target: CharSequence): Boolean
- def containsWithTransform(target: CharSequence, filter: (Char) => Boolean, map: (Char) => Char): Boolean
- Annotations
- @inline()
- def countOccurrences(ch: Char): Int
Count the occurrences of the character
- def equalsNormalized(target: CharSequence): Boolean
- def equalsWithTransform(target: CharSequence, filter: (Char) => Boolean, map: (Char) => Char): Boolean
- Annotations
- @inline()
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def indexOfIgnoreCase(target: CharSequence): Int
- def indexOfNormalized(target: CharSequence): Int
- def indexOfWithTransform(target: CharSequence, filter: (Char) => Boolean, map: (Char) => Char): Int
- Annotations
- @inline()
- def indexesOf(target: CharSequence, fromIdx: Int, withOverlaps: Boolean): IndexedSeq[Int]
- def indexesOf(target: CharSequence, withOverlaps: Boolean): IndexedSeq[Int]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNotNullOrBlank: Boolean
Opposite of isBlank
- def isNullOrBlank: Boolean
Returns true if the string is null or only whitespace
- def matches(regex: Regex): Boolean
- def matches(pattern: Pattern): Boolean
- def nextCharsMatch(target: CharSequence, idx: Int = 0): Boolean
Do the next characters starting at idx match the target
- def nonNullOrBlank: Boolean
Opposite of isBlank (alias for isNotBlank)
- val s: CharSequence
- def startsWith(target: CharSequence): Boolean
Same as String.startsWith(prefix) but for a CharSequence
- def toString(): String
- Definition Classes
- Any