forked from fdorg/flashdevelop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIPairTag.cs
More file actions
38 lines (33 loc) · 949 Bytes
/
Copy pathIPairTag.cs
File metadata and controls
38 lines (33 loc) · 949 Bytes
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
using System;
namespace PluginCore.BBCode
{
public interface IPairTag
{
IPairTagMatch openerMatch { get; }
IPairTagMatch closerMatch { get; }
}
public interface IPairTagMatch
{
Boolean isTagOpener { get; }
int tagIndex { get; }
uint tagLength { get; }
String tagValue { get; }
}
public interface IPairTagMatcher
{
String input { get; set; }
IPairTagMatch searchOpener(uint startAt);
IPairTagMatch searchOpenerAs(IPairTagMatch opener, uint startAt);
IPairTagMatch searchCloserFor(IPairTagMatch opener, uint startAt);
}
public interface IPairTagMatchHandler
{
/**
* Tag handler. Extracting raw params to final data.
* @param tag
* @return true if tag has been handled.
*/
Boolean handleTag(IPairTagMatch tag);
Boolean isHandleable(IPairTagMatch tag);
}
}