File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 87
87
_raise_unmatched_lbrace () = error (" Unmatched { in format expression." )
88
88
89
89
function find_next_entry_open (s:: AbstractString , si:: Int )
90
- slen = sizeof (s)
90
+ slen = endof (s)
91
91
p = search (s, ' {' , si)
92
92
p < slen || _raise_unmatched_lbrace ()
93
93
while p > 0 && s[p+ 1 ] == ' {' # escape `{{`
@@ -104,15 +104,15 @@ function find_next_entry_open(s::AbstractString, si::Int)
104
104
end
105
105
106
106
function find_next_entry_close (s:: AbstractString , si:: Int )
107
- slen = sizeof (s)
107
+ slen = endof (s)
108
108
p = search (s, ' }' , si)
109
109
p > 0 || _raise_unmatched_lbrace ()
110
110
# println("close at $p")
111
111
return p
112
112
end
113
113
114
114
function FormatExpr (s:: AbstractString )
115
- slen = sizeof (s)
115
+ slen = endof (s)
116
116
117
117
# init
118
118
prefix = " "
You can’t perform that action at this time.
0 commit comments