Trait/Object

dregex

Regex

Related Docs: object Regex | package dregex

Permalink

trait Regex extends AnyRef

A regular expression, ready to be tested against strings, or to take part in an operation against another. Internally, instances of this type have a DFA (Deterministic Finite Automaton).

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

Abstract Value Members

  1. abstract def universe: Universe

    Permalink

    Return this regex's Universe.

    Return this regex's Universe. Only regexes of the same universe can be operated together.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def diff(other: Regex): Regex

    Permalink

    Subtract other regular expression from this one.

    Subtract other regular expression from this one. The resulting expression will match the strings that are matched this expression and are not matched by the other, and only those. Differences take O(n⋅m) time, where n and m are the number of states of the DFA of the operands.

  7. def doIntersect(other: Regex): Boolean

    Permalink

    Return whether this expression matches at least one string in common with another.

    Return whether this expression matches at least one string in common with another. Intersections take O(n⋅m) time, where n and m are the number of states of the DFA of the operands.

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def equiv(other: Regex): Boolean

    Permalink

    Return whether this regular expression is equivalent to other.

    Return whether this regular expression is equivalent to other. Two regular expressions are equivalent if they match exactly the same set of strings. This operation takes O(n⋅m) time, where n and m are the number of states of the DFA of the operands.

  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. def intersect(other: Regex): Regex

    Permalink

    Intersect this regular expression with another.

    Intersect this regular expression with another. The resulting expression will match the strings that are matched by the operands, and only those. Intersections take O(n⋅m) time, where n and m are the number of states of the DFA of the operands.

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def isProperSubsetOf(other: Regex): Boolean

    Permalink

    Return whether this expressions matches every expression that is matched by another, but the expressions are not equal.

    Return whether this expressions matches every expression that is matched by another, but the expressions are not equal. Two diff between the two operands are done internally.

  17. def isSubsetOf(other: Regex): Boolean

    Permalink

    Return whether this expressions matches every expression that is matched by another.

    Return whether this expressions matches every expression that is matched by another. An diff between the two operands is done internally.

  18. def matchAndReport(string: CharSequence): (Boolean, Int)

    Permalink

    Similar to method matches, except that also return how many characters were successfully matched in case of failure.

  19. def matches(string: CharSequence): Boolean

    Permalink

    Return whether a string is matched by the regular expression (i.e.

    Return whether a string is matched by the regular expression (i.e. whether the string is included in the language generated by the expression). As the match is done using a DFA, its complexity is O(n), where n is the length of the string. It is constant with respect to the length of the expression.

  20. def matchesAtLeastOne(): Boolean

    Permalink

    Return whether this regular expression matches anything.

    Return whether this regular expression matches anything. Note that the empty string is a valid match.

  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. def union(other: Regex): Regex

    Permalink

    Unite this regular expression with another.

    Unite this regular expression with another. The resulting expression will match the strings that are matched by either of the operands, and only those. Unions take O(n⋅m) time, where n and m are the number of states of the DFA of the operands.

  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped