5Z1A9z8ENNl0BtDiC4B9qn changeset

Changeset383033313930 (b)
ParentNone (a)
ab
0+Function SubstrInterpoint(ByVal src As String) As String
0+        cr = Chr(13)
0+        lf = Chr(10)
0+        crlf = cr & lf
0+        s = Replace(src, crlf, lf)
0+        s = Replace(src, cr, lf)
0+        SubstrInterpoint = Substr(s, "・", lf)
0+End Function
0+
0+Function Substr(ByVal src As String, ByVal startChar As String, ByVal endChar As String) As String
0+        If (src = "") Then
0+                Substr = ""
0+        Else
0+                startIndex = InStr(1, src, startChar, 1)
0+                If (startIndex < 1) Then
0+                        Substr = ""
0+                Else
0+                        endIndex = InStr(startIndex + 1, src, endChar, 1) - 1
0+                        If (endIndex < startIndex) Then
0+                                endIndex = Len(src)
0+                        End If
0+                        Substr = Mid(src, startIndex, endIndex - startIndex + 1)
0+                End If
0+        End If
0+End Function
...
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
--- Revision None
+++ Revision 383033313930
@@ -0,0 +1,25 @@
+Function SubstrInterpoint(ByVal src As String) As String
+ cr = Chr(13)
+ lf = Chr(10)
+ crlf = cr & lf
+ s = Replace(src, crlf, lf)
+ s = Replace(src, cr, lf)
+ SubstrInterpoint = Substr(s, "・", lf)
+End Function
+
+Function Substr(ByVal src As String, ByVal startChar As String, ByVal endChar As String) As String
+ If (src = "") Then
+ Substr = ""
+ Else
+ startIndex = InStr(1, src, startChar, 1)
+ If (startIndex < 1) Then
+ Substr = ""
+ Else
+ endIndex = InStr(startIndex + 1, src, endChar, 1) - 1
+ If (endIndex < startIndex) Then
+ endIndex = Len(src)
+ End If
+ Substr = Mid(src, startIndex, endIndex - startIndex + 1)
+ End If
+ End If
+End Function