[code] indexOfChar is faster
[feature] build doc fragment