DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | List of all members
Deveel.Data.Text.IRegexLibrary Interface Reference

An interface that links with a Regex library. More...

Inheritance diagram for Deveel.Data.Text.IRegexLibrary:
Deveel.Data.Text.SystemRegexLibrary

Public Member Functions

bool RegexMatch (string regularExpression, string expressionOps, string value)
 Matches a regular expression against a string value. More...
 
IList< int > RegexSearch (Table table, int column, string regularExpression, string expressionOps)
 Performs a regular expression search on the given column of the table. More...
 

Detailed Description

An interface that links with a Regex library.

This interface allows the database engine to use any regular expression library that this interface can be implemented for.

Definition at line 29 of file IRegexLibrary.cs.

Member Function Documentation

bool Deveel.Data.Text.IRegexLibrary.RegexMatch ( string  regularExpression,
string  expressionOps,
string  value 
)

Matches a regular expression against a string value.

Parameters
regularExpressionThe regular expression to match.
expressionOpsThe expression options string that specifies various flags.
valueThe string to test.
Returns
If the value is a match against the expression then it returns true, otherwise it returns false.

Implemented in Deveel.Data.Text.SystemRegexLibrary.

IList<int> Deveel.Data.Text.IRegexLibrary.RegexSearch ( Table  table,
int  column,
string  regularExpression,
string  expressionOps 
)

Performs a regular expression search on the given column of the table.

Parameters
tableThe table to search for matching values.
columnThe column of the table to search for matching values.
regularExpressionThe expression to match (eg. "[0-9]+").
expressionOpsExpression operator string that specifies various flags.
Returns
Returns an IntegerVector that contains the list of rows in the table that matched the expression, or an empty list if the expression matched no rows in the column.

Implemented in Deveel.Data.Text.SystemRegexLibrary.


The documentation for this interface was generated from the following file: