Interpolators

stringmatching.regex.Interpolators
object Interpolators

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

enum with tokens representing format strings for PatternElement.Format.

enum with tokens representing format strings for PatternElement.Format.

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum Pattern

Holder for the pattern elements described by a string interpolated with r.

Holder for the pattern elements described by a string interpolated with r.

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

enum representing all possible patterns described by the r interpolator.

enum representing all possible patterns described by the r interpolator.

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

An intermediate representation that stores the format described by an interpolated string.

An intermediate representation that stores the format described by an interpolated string.

Attributes

Supertypes
class Object
trait Matchable
class Any

Extensions

Extensions

extension [R](inline rsSC: RSStringContext[R])
transparent inline def unapply[Base](scrutinee: Base): Any

enables compile time splitting of string globs with the syntax r"$foo...(, )". can be arbitrarily nested, e.g. r"${r"$foos...(, )"}...(; )".

enables compile time splitting of string globs with the syntax r"$foo...(, )". can be arbitrarily nested, e.g. r"${r"$foos...(, )"}...(; )".

case r"Foo $id: $bars...(, )" => (id, bars)

is equivalent to

case s"Foo $id: $bars0" => (id, bars0.split(", ").toIndexedSeq)

Attributes

extension (inline sc: StringContext)
transparent inline def r: RSStringContext[Any]

use in patterns like case r"$foo...(, )" => println(foo)

use in patterns like case r"$foo...(, )" => println(foo)

Attributes