public static countLeadingSpaces(value as String) as Int
Counts the number of leading ASCII space characters (' ') at the start of value.
| Parameter | Description |
|---|---|
value | Source line text. |
Number of leading spaces.
import klyn.code.klyn
assert KlynDocComment.countLeadingSpaces(" public run():") == 4