fr.splayce.rel

util

package util

Visibility
  1. Public
  2. All

Type Members

  1. class ByOptionExtractor [+A] extends Extractor[A]

  2. case class Cleaner (clean: (String) ⇒ String, cleanTrack: (TrackString) ⇒ TrackString) extends (String) ⇒ String with Product with Serializable

    Cleaner: composable String => String function.

  3. trait Extractor [+A] extends (String) ⇒ Iterator[A]

  4. class Flavor extends (RE) ⇒ RE with FlavorLike

    Attributes
    abstract
  5. trait FlavorLike extends AnyRef

  6. type MatchExtractor [+A] = PartialFunction[Match, A]

    Definition Classes
    package
  7. case class MatchGroup (name: Option[String], matched: Option[String], subgroups: List[MatchGroup]) extends Product with Serializable

  8. type MatchGroupExtractor [+A] = PartialFunction[MatchGroup, A]

    Definition Classes
    package
  9. type MatchGroupOptionExtractor [+A] = PartialFunction[MatchGroup, Option[A]]

    Definition Classes
    package
  10. class MatchGroups extends AnyRef

    A Match with its [accepted/filtered] capturing groups.

  11. case class MatchedExtractor () extends MatchExtractor[String] with Product with Serializable

  12. case class NamedGroupExtractor (name: String) extends MatchExtractor[String] with Product with Serializable

  13. case class NthGroupExtractor (n: Int) extends MatchExtractor[String] with Product with Serializable

  14. type OpRewriter [A] = (A, RE) ⇒ (RE, A)

    Definition Classes
    package
  15. class PatternMatcher [-A, +B] extends AnyRef

    Utility for instanciating pattern matchers on various objects.

  16. type Rewriter = PartialFunction[RE, RE]

    Definition Classes
    package
  17. case class TrackString (source: String, current: String, repl: Repl) extends Product with Serializable

    A String that can keep track of the shifts in position when edited.

Value Members

  1. object ByOptionExtractor extends AnyRef

  2. object Cleaner extends Serializable

  3. object Extractor extends AnyRef

  4. object Flavor extends AnyRef

  5. val IdRewriter : Rewriter

    Utility no-op Rewriter, bypasses recusion

    Utility no-op Rewriter, bypasses recusion

    Definition Classes
    package
  6. object MatchGroups extends AnyRef

    Pattern Matching & extraction utilities

  7. val RecursiveIdRewriter : PartialFunction[RE, RE]

    Utility no-op Rewriter, keeps recusion

    Utility no-op Rewriter, keeps recusion

    Definition Classes
    package
  8. object TrackString extends Serializable

  9. def defaultMGOE [A] : MatchGroupOptionExtractor[A]

    Definition Classes
    package
  10. def unlift [A, B] (f: (A) ⇒ Option[B]): PartialFunction[A, B]

    Reverse of PartialFunction's lift method

    Reverse of PartialFunction's lift method

    Use with parcimony if f is costly, for it may be called twice. For example in such case, prefer using fr.splayce.rel.ByOptionExtractor over using unlift to make a MatchExtractor.

    Definition Classes
    package