src/org/nutz/lang/Strings.java
public static boolean isQuoteBy(CharSequence cs, char lc, char rc) {
        if (null == cs)
            return false;
        int length = cs.length();
        return length > 1 && cs.charAt(0) == lc && cs.charAt(length - 1) == rc;
    }
public static boolean isQuoteBy(CharSequence cs, char lc, char rc) {
        if (null == cs)
            return false;
        int length = cs.length();
        return length > 1 && cs.charAt(0) == lc && cs.charAt(length - 1) == rc;
    }
测试此字符串是否被指定的左字符和右字符所包裹

@param cs
字符串
@param lc
左字符
@param rc
右字符
@return 字符串是被左字符和右字符包裹