-
Notifications
You must be signed in to change notification settings - Fork 12
/
EscapeSequence.cls
39 lines (33 loc) · 1.02 KB
/
EscapeSequence.cls
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
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
Attribute VB_Name = "EscapeSequence"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Private Type tEscapeSequence
EscapeString As String
ReplacementString As String
End Type
Private this As tEscapeSequence
Option Explicit
Public Property Get EscapeString() As String
EscapeString = this.EscapeString
End Property
Friend Property Let EscapeString(value As String)
this.EscapeString = value
End Property
Public Property Get ReplacementString() As String
ReplacementString = this.ReplacementString
End Property
Friend Property Let ReplacementString(value As String)
this.ReplacementString = value
End Property
Public Function Create(escape As String, replacement As String) As EscapeSequence
Dim result As New EscapeSequence
result.EscapeString = escape
result.ReplacementString = replacement
Set Create = result
End Function