forked from fdorg/flashdevelop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPairTag.cs
More file actions
78 lines (65 loc) · 1.65 KB
/
Copy pathPairTag.cs
File metadata and controls
78 lines (65 loc) · 1.65 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
using System;
namespace PluginCore.BBCode
{
public class PairTag : IPairTag
{
public PairTag(IPairTagMatch openerMatch, IPairTagMatch closerMatch)
{
_openerMatch = openerMatch;
_closerMatch = closerMatch;
}
private IPairTagMatch _openerMatch;
private IPairTagMatch _closerMatch;
public IPairTagMatch openerMatch
{
get { return _openerMatch; }
}
public IPairTagMatch closerMatch
{
get { return _closerMatch; }
}
override public String ToString()
{
return "[pairTag"
+ " openerMatch='" + (_openerMatch == null ? "null" : _openerMatch.ToString()) + "'"
+ " closerMatch='" + (_closerMatch == null ? "null" : _closerMatch.ToString()) + "'"
+ "]";
}
}
public class VoidCloserTagMatch : IPairTagMatch
{
public VoidCloserTagMatch()
{
_init(-1);
}
public VoidCloserTagMatch(int tagIndex)
{
_init(tagIndex);
}
private void _init(int tagIndex)
{
_tagIndex = tagIndex;
}
private int _tagIndex;
public Boolean isTagOpener
{
get { return false; }
}
public int tagIndex
{
get { return _tagIndex; }
}
public uint tagLength
{
get { return 0; }
}
public String tagValue
{
get { return ""; }
}
public String tagName
{
get { return null; }
}
}
}