'Replace unicode.replace(...) by a direct call to the
corresponding C-API function.'

def _handle_simple_method_unicode_replace(self, node, function, args, is_unbound_method):

    if (len(args) not in (3, 4)):
        self._error_wrong_arg_count('unicode.replace', node, args, '3-4')
        return node
    self._inject_int_default_argument(node, args, 3, PyrexTypes.c_py_ssize_t_type, '-1')
    return self._substitute_method_call(node, function, 'PyUnicode_Replace', self.PyUnicode_Replace_func_type, 'replace', is_unbound_method, args)
