: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
<title>CodeMirror: Eiffel mode</title>
<link rel=stylesheet href="../../doc/docs.css">
<link rel="stylesheet" href="../../lib/codemirror.css">
<link rel="stylesheet" href="../../theme/neat.css">
<script src="../../lib/codemirror.js"></script>
<script src="eiffel.js"></script>
.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
.cm-s-default span.cm-arrow { color: red; }
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
<li><a href="../../index.html">Home</a>
<li><a href="../../doc/manual.html">Manual</a>
<li><a href="https://github.com/codemirror/codemirror">Code</a>
<li><a href="../index.html">Language modes</a>
<li><a class=active href="#">Eiffel</a>
<form><textarea id="code" name="code">
Project-wide universal properties.
This class is an ancestor to all developer-written classes.
ANY may be customized for individual projects or teams.
library: "Free implementation of ELKS library"
status: "See notice at end of class."
legal: "See notice at end of class."
date: "$Date: 2013-01-25 11:49:00 -0800 (Fri, 25 Jan 2013) $"
revision: "$Revision: 712 $"
-- Name of current object's generating class
-- (base class of the type of which it is a direct instance)
generator_not_void: Result /= Void
generator_not_empty: not Result.is_empty
generating_type: TYPE [detachable like Current]
-- Type of current object
-- (type of which it is a direct instance)
Result := {detachable like Current}
generating_type_not_void: Result /= Void
conforms_to (other: ANY): BOOLEAN
-- Does type of current object conform to type
-- of `other' (as per Eiffel: The Language, chapter 13)?
other_not_void: other /= Void
same_type (other: ANY): BOOLEAN
-- Is type of current object identical to type of `other'?
other_not_void: other /= Void
definition: Result = (conforms_to (other) and
other.conforms_to (Current))
is_equal (other: like Current): BOOLEAN
-- Is `other' attached to an object considered
-- equal to current object?
other_not_void: other /= Void
symmetric: Result implies other ~ Current
consistent: standard_is_equal (other) implies Result
frozen standard_is_equal (other: like Current): BOOLEAN
-- Is `other' attached to an object of the same type
-- as current object, and field-by-field identical to it?
other_not_void: other /= Void
same_type: Result implies same_type (other)
symmetric: Result implies other.standard_is_equal (Current)
frozen equal (a: detachable ANY; b: like a): BOOLEAN
-- Are `a' and `b' either both void or attached
-- to objects considered equal?
Result := b /= Void and then
definition: Result = (a = Void and b = Void) or else
((a /= Void and b /= Void) and then
frozen standard_equal (a: detachable ANY; b: like a): BOOLEAN
-- Are `a' and `b' either both void or attached to
-- field-by-field identical objects of the same type?
-- Always uses default object comparison criterion.
Result := b /= Void and then
definition: Result = (a = Void and b = Void) or else
((a /= Void and b /= Void) and then
frozen is_deep_equal (other: like Current): BOOLEAN
-- Are `Current' and `other' attached to isomorphic object structures?
other_not_void: other /= Void
shallow_implies_deep: standard_is_equal (other) implies Result
same_type: Result implies same_type (other)
symmetric: Result implies other.is_deep_equal (Current)
frozen deep_equal (a: detachable ANY; b: like a): BOOLEAN
-- Are `a' and `b' either both void
-- or attached to isomorphic object structures?
Result := b /= Void and then a.is_deep_equal (b)
shallow_implies_deep: standard_equal (a, b) implies Result
both_or_none_void: (a = Void) implies (Result = (b = Void))
same_type: (Result and (a /= Void)) implies (b /= Void and then a.same_type (b))
symmetric: Result implies deep_equal (b, a)
frozen twin: like Current
-- New object equal to `Current'
-- `twin' calls `copy'; to change copying/twinning semantics, redefine `copy'.
twin_not_void: Result /= Void
is_equal: Result ~ Current
copy (other: like Current)
-- Update current object using fields of object attached
-- to `other', so as to yield equal objects.
other_not_void: other /= Void
type_identity: same_type (other)
is_equal: Current ~ other
frozen standard_copy (other: like Current)
-- Copy every field of `other' onto corresponding field
other_not_void: other /= Void
type_identity: same_type (other)
is_standard_equal: standard_is_equal (other)
frozen clone (other: detachable ANY): like other
-- Void if `other' is void; otherwise new object
-- For non-void `other', `clone' calls `copy';
-- to change copying/cloning semantics, redefine `copy'.
frozen standard_clone (other: detachable ANY): like other
-- Void if `other' is void; otherwise new object
-- field-by-field identical to `other'.
-- Always uses default copying semantics.
"Use `standard_twin' instead."
Result := other.standard_twin
equal: standard_equal (Result, other)
frozen standard_twin: like Current
-- New object field-by-field identical to `other'.
-- Always uses default copying semantics.
standard_twin_not_void: Result /= Void
equal: standard_equal (Result, Current)
frozen deep_twin: like Current
-- New object structure recursively duplicated from Current.
deep_twin_not_void: Result /= Void
deep_equal: deep_equal (Current, Result)
frozen deep_clone (other: detachable ANY): like other
-- Void if `other' is void: otherwise, new object structure
-- recursively duplicated from the one attached to `other'
"Use `deep_twin' instead."
Result := other.deep_twin
deep_equal: deep_equal (other, Result)
frozen deep_copy (other: like Current)
-- Effect equivalent to that of:
-- `copy' (`other' . `deep_twin')
other_not_void: other /= Void
deep_equal: deep_equal (Current, other)
feature {NONE} -- Retrieval
frozen internal_correct_mismatch
-- Called from runtime to perform a proper dynamic dispatch on `correct_mismatch'
-- from MISMATCH_CORRECTOR.
if attached {MISMATCH_CORRECTOR} Current as l_corrector then
l_corrector.correct_mismatch
create l_msg.make_from_string ("Mismatch: ")
l_msg.append (generating_type.name)
l_exc.raise_retrieval_exception (l_msg)
-- Handle to standard file setup
Result.set_output_default
io_not_void: Result /= Void
-- New string containing terse printable representation
out_not_void: Result /= Void
frozen tagged_out: STRING
-- New string containing terse printable representation
tagged_out_not_void: Result /= Void
print (o: detachable ANY)
-- Write terse external representation of `o'
Operating_environment: OPERATING_ENVIRONMENT
-- Objects available from the operating system
operating_environment_not_void: Result /= Void
feature {NONE} -- Initialization
-- Process instances of classes with no creation clause.
-- (Default: do nothing.)
feature -- Basic operations
-- Process exception for routines with no Rescue clause.
-- (Default: do nothing.)
-- Execute a null action.
frozen default: detachable like Current
-- Default value of object's type
frozen default_pointer: POINTER
-- Default value of type `POINTER'
-- (Avoid the need to write `p'.`default' for
-- some `p' of type `POINTER'.)
-- Result = Result.default
frozen as_attached: attached like Current
-- Attached version of Current
-- (Can be used during transitional period to convert
-- non-void-safe classes to void-safe ones.)
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
copyright: "Copyright (c) 1984-2012, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
5949 Hollister Ave., Goleta, CA 93117 USA
Telephone 805-685-1006, Fax 805-685-6869
Website http://www.eiffel.com
Customer support http://support.eiffel.com
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
<p><strong>MIME types defined:</strong> <code>text/x-eiffel</code>.</p>
<p> Created by <a href="https://github.com/ynh">YNH</a>.</p>