57
58
constructor(
60
>
) { }
61
62
reset(key: string): this {
64
>
this._from = 0;
65
>
this._to = 0;
66
>
return this.next();
67
>
}
68
69
hasNext(): boolean {
71
>
}
72
73
next(): this {
75
>
this._from = this._to;
76
>
let justSeps = true;
77
>
for (; this._to < this._value.length; this._to++) {
78
>
const ch = this._value.charCodeAt(this._to);
79
>
if (ch === CharCode.Period) {
80
>
if (justSeps) {
81
>
this._from++;
82
>
} else {
83
>
break;
84
>
}
85
>
} else {
86
>
justSeps = false;
87
>
}
88
>
}
89
>
return this;
90
>
}
91
92
cmp(a: string): number {
94
>
? compareSubstring(a, this._value, 0, a.length, this._from, this._to)
95
: compareSubstringIgnoreCase(a, this._value, 0, a.length, this._from, this._to);
97
98
value(): string {
100
>
}
101
}
102