@Immutable
    public static int strcmp(String value1, String value2) {
        int aLen = value1.length();
        int bLen = value2.length();

        for (int i = 0; i < aLen && i < bLen; i++) {
            char chA = value1.charAt(i);
            char chB = value2.charAt(i);

            if (chA == chB)
                continue;

            if (chA < chB)
                return -1;
            else
                return 1;
        }

        if (aLen == bLen)
            return 0;
        else if (aLen < bLen)
            return -1;
        else
            return 1;
    }
Parses the cslashes bitmap returning an actual bitmap.

@param charset the bitmap string

@return the actual bitmap
exts/jphp-zend-ext/src/main/java/org/develnext/jphp/zend/ext/standard/StringFunctions.java