This repository was archived by the owner on Apr 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathRegExpProxy.cs
More file actions
46 lines (35 loc) · 1.45 KB
/
Copy pathRegExpProxy.cs
File metadata and controls
46 lines (35 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//------------------------------------------------------------------------------
// <license file="RegExpProxy.cs">
//
// The use and distribution terms for this software are contained in the file
// named 'LICENSE', which can be found in the resources directory of this
// distribution.
//
// By using this software in any fashion, you are agreeing to be bound by the
// terms of this license.
//
// </license>
//------------------------------------------------------------------------------
using System;
namespace EcmaScript.NET
{
public enum RegExpActions
{
None = 0,
Match = 1,
Replace = 2,
Search = 3
}
/// <summary>
/// A proxy for the regexp package, so that the regexp package can be
/// loaded optionally.
/// </summary>
public interface RegExpProxy
{
bool IsRegExp (IScriptable obj);
object Compile (Context cx, string source, string flags);
IScriptable Wrap (Context cx, IScriptable scope, object compiled);
object Perform (Context cx, IScriptable scope, IScriptable thisObj, object [] args, RegExpActions actionType);
int FindSplit (Context cx, IScriptable scope, string target, string separator, IScriptable re, int [] ip, int [] matchlen, bool [] matched, string [] [] parensp);
}
}