// Path: kheera-testrunner/src/main/java/gherkin/StringUtils.java
// public static String ltrim(String s) {
//     int i = 0;
//     while (i < s.length() && Character.isWhitespace(s.charAt(i))) {
//         i++;
//     }
//     return s.substring(i);
// }
// 
// Path: kheera-testrunner/src/main/java/gherkin/SymbolCounter.java
// public static int countSymbols(String string) {
//     return string.codePointCount(0, string.length());
// }


import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import static gherkin.StringUtils.ltrim;
import static gherkin.SymbolCounter.countSymbols;
package gherkin;



public class GherkinLine implements IGherkinLine {
    private final String lineText;
    private final String trimmedLineText;

    public GherkinLine(String lineText) {
        this.lineText = lineText;
        this.trimmedLineText = ltrim(lineText);
    }

    @Override
    public Integer indent() {
// Path: kheera-testrunner/src/main/java/gherkin/StringUtils.java
// public static String ltrim(String s) {
//     int i = 0;
//     while (i < s.length() && Character.isWhitespace(s.charAt(i))) {
//         i++;
//     }
//     return s.substring(i);
// }
// 
// Path: kheera-testrunner/src/main/java/gherkin/SymbolCounter.java
// public static int countSymbols(String string) {
//     return string.codePointCount(0, string.length());
// }


// Path: kheera-testrunner/src/main/java/gherkin/GherkinLine.java
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import static gherkin.StringUtils.ltrim;
import static gherkin.SymbolCounter.countSymbols;

package gherkin;



public class GherkinLine implements IGherkinLine {
    private final String lineText;
    private final String trimmedLineText;

    public GherkinLine(String lineText) {
        this.lineText = lineText;
        this.trimmedLineText = ltrim(lineText);
    }

    @Override
    public Integer indent() {
        return countSymbols(lineText) - countSymbols(trimmedLineText);