Unicode

parsley.token.Unicode
See theUnicode companion object
final case class Unicode(predicate: Int => Boolean) extends CharPred

More generic character predicate, which reads any unicode codepoint.

Full unicode characters can be up to 24-bits, which is handled by a 32-bit number on the JVM. This predicate can be used, therefore, to handle any single unicode codepoint: this excludes multi-codepoint characters like flags, or modified emojis.

In Scala, characters can be upcast to integers, so still can be used in the description of this predicate.

Attributes

Since

4.0.0

Companion
object
Source
CharPred.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class CharPred
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this(c: Int)

Attributes

Source
CharPred.scala

Attributes

Source
CharPred.scala
def this(cs: Range)

Attributes

Source
CharPred.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product