Access keys

Pattern

Kind of class: class
Inherits from: BasicClass
Known subclasses:
Author: Igor Sadovskiy
Classpath: org.as2lib.regexp.Pattern
File last modified: Tuesday, 11 October 2005, 16:55:40
Pattern provides implementations of the parsing engine for
basic RegExp constructs.

Constructor

Pattern

function Pattern (
newPattern:String, newFlags:Number)

Class properties

CASE_INSENSITIVE

static CASE_INSENSITIVE:Number = 0x02
(read,write)
Enables case-insensitive matching.

COMMENTS

static COMMENTS:Number = 0x04
(read,write)
Permits whitespace and comments in pattern.

DOTALL

static DOTALL:Number = 0x20
(read,write)
Enables dotall mode.

MULTILINE

static MULTILINE:Number = 0x08
(read,write)
Enables multiline mode.

UNICODE_CASE

static UNICODE_CASE:Number = 0x40
(read,write)
Enables Unicode-aware case folding.

UNIX_LINES

static UNIX_LINES:Number = 0x01
(read,write)
Enables Unix lines mode.

Instance properties

ch

ch:Number = peekChar()
(read,write)

comp

comp:Boolean = (ch == ord('P'))
(read,write)

done

done:Boolean = false
(read,write)

endRange

endRange:Number = temp[cursor+1]
(read,write)

first

first:Number = 0
(read,write)

m

m:Number = parseSingle()
(read,write)

matchRoot

matchRoot:Node
(read,write)
The root of object tree for a match operation. The pattern is matched
at the beginning. This may include a find that uses BnM or a First
node.

oneLetter

oneLetter:Boolean = true
(read,write)

prev

prev:Number = -1
(read,write)

Class methods

matches

static function matches (
pattern:String, input:String) : Boolean

Instance methods

getFlags

function getFlags (
Void) : Number

getMatcher

function getMatcher (
input:String) : Matcher

getPattern

function getPattern (
Void) : String

split

function split (
input:String, limit:Number) : Array