package com.qt.var;

import com.qt.base.BaseAction;
import com.qt.base.Mode;
import com.qt.utils.StringUtils;

public class BigHumpAction extends BaseAction {


    @Override
    public int parseMode() {
        return Mode.BIG_HUMP;
    }

    @Override
    public void onParseError(Exception e) {

    }

    @Override
    public String parseResult(String[] result) throws Exception {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < result.length; i++) {
            sb.append(StringUtils.upperCase(result[i]));
        }
        return sb.toString();
    }

    @Override
    public String name() {
        return "大驼峰";
    }
}
