Packages

  • package root

    Gnieh Tekstlib is a library grouping standard classes and packages allowing people to work with texts and documents.

    Gnieh Tekstlib

    Gnieh Tekstlib is a library grouping standard classes and packages allowing people to work with texts and documents.

    Package Structure

    Definition Classes
    root
  • package gnieh
    Definition Classes
    root
  • package regex
    Definition Classes
    gnieh
  • package compiler
    Definition Classes
    regex
  • package dsl

    This package contains the DSL for building regular expressions.

    This package contains the DSL for building regular expressions. It is inspired by the [Re](http://re-lib.rubyforge.org/) library. It also provides some useful implicit conversions to be used more conveniently.

    Definition Classes
    regex
  • DslGreedyRegex
  • DslRegex
  • RichChar
  • package tdfa
    Definition Classes
    regex
  • package util
    Definition Classes
    regex
  • package vm
    Definition Classes
    regex

package dsl

This package contains the DSL for building regular expressions. It is inspired by the [Re](http://re-lib.rubyforge.org/) library. It also provides some useful implicit conversions to be used more conveniently.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. dsl
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait DslGreedyRegex extends DslRegex

    A greedy operator regular expression.

    A greedy operator regular expression. It matches as many characters as possible.

  2. class DslRegex extends Regex

    An instance of a regular expression that supports DSL methods for combining them together

  3. implicit final class RichChar extends AnyVal

Value Members

  1. def any(classes: CharRange*)(implicit impl: RegexImpl): DslRegex

    Matches any character in the classes.

    Matches any character in the classes. A character class is either a single character c, a range a-z

  2. def any(implicit impl: RegexImpl): DslRegex

    Matches any character

  3. implicit def char2charrange(c: Char): CharRange
  4. def digit(implicit impl: RegexImpl): DslRegex

    Matches any digit (equivalent to [0-9])

  5. def digits(implicit impl: RegexImpl): DslRegex

    Matches digits (equivalent to [0-9]+)

  6. def empty(implicit impl: RegexImpl): DslRegex

    Matches the empty string

  7. def hexDigit(implicit impl: RegexImpl): DslRegex

    Matches any hexadecimal digit (equivalent to [A-Fa-f0-9])

  8. def hexDigits(implicit impl: RegexImpl): DslRegex

    Matches hexadecimal digits (equivalent to [A-Fa-f0-9]+)

  9. def none(classes: CharRange*)(implicit impl: RegexImpl): DslRegex

    Matches any character that is not in any of the classes

  10. def nonspace(implicit impl: RegexImpl): DslRegex

    Matches any non space character (equivalent to \S)

  11. def nonspaces(implicit impl: RegexImpl): DslRegex

    Matches non space characters (equivalent to \S+)

  12. def raw(str: String)(implicit impl: RegexImpl): DslRegex

    Matches the literal characters of the string (special regular expression characters are considered as raw characters

  13. def space(implicit impl: RegexImpl): DslRegex

    Matches any space character (equivalent to \s)

  14. def spaces(implicit impl: RegexImpl): DslRegex

    Matches space characters (equivalent to \s+)

  15. def word(implicit impl: RegexImpl): DslRegex

    Matches any word (equivalent to \w+)

  16. def wordChar(implicit impl: RegexImpl): DslRegex

    Matches any word character (equivalent to \w)

Inherited from AnyRef

Inherited from Any

Ungrouped