protected static Memory _str_replace_impl(Environment env, TraceInfo trace,
                                              Memory search, Memory replace, Memory string,
                                              @Reference Memory _count, boolean isInsensitive) {
        String searchText = search.toString();
        String replaceText = replace.toString();
        String text = string.toString();

        AtomicLong count = _count.isUndefined() ? null : new AtomicLong(_count.toLong());
        text = StringUtils.replace(text, searchText, replaceText, isInsensitive, count);

        if (count != null) _count.assign(count.get());

        return StringMemory.valueOf(text);
    }
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