work in progress | character |
February 2001:
March 2001: September 2001:19 FEBRUARY 2001 VERSION
infix "<" (other: like Current): BOOLEAN
-- Is 'other' greater than current character?
-- (Inherited from COMPARABLE.)
require -- from COMPARABLE
other_exists: other
/= Void
ensure -- from COMPARABLE
asymmetric: Result
implies not (other < Current)
ensure then
definition: result
= (code < other.code)
A set of parentheses was inserted into the "definition" postcondition (after the call to vote) to correct an undisputed precedence error.
The proposal was accepted.
08 MARCH 2001 19:15 version
as_lower: CHARACTER
-- Lower case equivalent.
converted:
("ABCDEFGHIJKLMNOPQRSTUVWXYZ").has(Current)
implies Result
= ("abcdefghijklmnopqrstuvwxyz").item(
("ABCDEFGHIJKLMNOPQRSTUVWXYZ").index_of(Current,
1))
unchanged:
not ("ABCDEFGHIJKLMNOPQRSTUVWXYZ").has(Current)
implies Result
= Current
as_upper: CHARACTER
-- Upper case equivalent.
converted:
("abcdefghijklmnopqrstuvwxyz").has(Current)
implies Result
= ("ABCDEFGHIJKLMNOPQRSTUVWXYZ").item(
("abcdefghijklmnopqrstuvwxyz").index_of(Current,
1))
unchanged:
not ("abcdefghijklmnopqrstuvwxyz").has(Current)
implies Result
= Current
The "ensure" keyword (missing in this proposal) was added to the proposed class text after the call-to-vote.
The proposal was accepted.
25 SEPTEMBER 2001 VERSION
as_lower: like Current
-- Lower case equivalent
ensure
non_void_result:
Result /= Void
converted:
("ABCDEFGHIJKLMNOPQRSTUVWXYZ").has(item)
implies Result.item = ("abcdefghijklmnopqrstuvwxyz").item(
("ABCDEFGHIJKLMNOPQRSTUVWXYZ").index_of(item, 1))
unchanged:
not ("ABCDEFGHIJKLMNOPQRSTUVWXYZ").has(item)
implies Result = Current
as_upper: like Current
-- Upper case equivalent
ensure
non_void_result:
Result /= Void
converted:
("abcdefghijklmnopqrstuvwxyz").has(item)
implies Result.item = ("ABCDEFGHIJKLMNOPQRSTUVWXYZ").item(
("abcdefghijklmnopqrstuvwxyz").index_of(item, 1))
unchanged:
not ("abcdefghijklmnopqrstuvwxyz").has(item)
implies Result = Current
The proposal was accepted.