public override scanNumberEnd(line as String, start as Long) as Long
Scans a CSS numeric literal including optional unit suffixes (px, rem, em, %, vh, vw, s, ms, deg).
| Parameter | Description |
|---|---|
line | Source line text. |
start | Inclusive start index of the number. |
Exclusive end index of the number and its unit suffix.
import klyn.code.css
t = CssTokenizer()
assert t.scanNumberEnd("16px;", 0) == 4
assert t.scanNumberEnd("100%", 0) == 4