klyn.code.klyn.KlynDocComment.countLeadingSpaces
method
public static countLeadingSpaces(value as String) as Int
Description

Counts the number of leading ASCII space characters (' ') at the start of value.

Parameters
ParameterDescription
valueSource line text.
Returns

Number of leading spaces.

Example
import klyn.code.klyn

assert KlynDocComment.countLeadingSpaces("    public run():") == 4