@@ -50,7 +50,7 @@ public:
50
50
}
51
51
52
52
/* !
53
- * Have we reached EOF, if we have current = dchar.init .
53
+ * Have we reached EOF, if we have current = dchar.default .
54
54
*/
55
55
final @property fn empty() dchar
56
56
{
@@ -154,7 +154,7 @@ public:
154
154
*
155
155
* @SideEffects None.
156
156
*
157
- * @Returns Unicode char at @p n or @p dchar.init at EOF.
157
+ * @Returns Unicode char at @p n or @p dchar.default at EOF.
158
158
*/
159
159
final fn lookahead (n: size_t , out lookaheadEOF: bool ) dchar
160
160
{
@@ -213,7 +213,7 @@ public:
213
213
// ! @see empty.
214
214
alias eof = empty;
215
215
216
- // ! Have we reached EOF, if we have front = dchar.init .
216
+ // ! Have we reached EOF, if we have front = dchar.default .
217
217
empty: bool ;
218
218
219
219
@@ -270,7 +270,7 @@ public:
270
270
{
271
271
mLastIndex = mNextIndex;
272
272
mChar = decodeChar(ref mNextIndex);
273
- if (mChar == dchar .init ) {
273
+ if (mChar == dchar .default ) {
274
274
empty = true ;
275
275
mNextIndex = source.length;
276
276
mLastIndex = source.length;
@@ -301,7 +301,7 @@ public:
301
301
*
302
302
* If `n` is `0`, this is the same as calling `front`.
303
303
*
304
- * @Returns Unicode char at @p n or @p dchar.init at empty.
304
+ * @Returns Unicode char at @p n or @p dchar.default at empty.
305
305
*
306
306
* @Throws UtfException if the source is not valid utf8.
307
307
*
@@ -318,9 +318,9 @@ public:
318
318
index := mNextIndex;
319
319
for (i: size_t ; i < n; i++ ) {
320
320
c = decodeChar(ref index);
321
- if (c == dchar .init ) {
321
+ if (c == dchar .default ) {
322
322
lookaheadEmpty = true ;
323
- return dchar .init ;
323
+ return dchar .default ;
324
324
}
325
325
}
326
326
return c;
@@ -381,12 +381,12 @@ public:
381
381
*
382
382
* @SideEffects None.
383
383
*
384
- * @Returns Unicode char at @p index or @p dchar.init if out of bound.
384
+ * @Returns Unicode char at @p index or @p dchar.default if out of bound.
385
385
*/
386
386
fn decodeChar (ref index: size_t ) dchar
387
387
{
388
388
if (index >= source.length) {
389
- return dchar .init ;
389
+ return dchar .default ;
390
390
}
391
391
392
392
return decode (source, ref index);
0 commit comments