indexing
description: "Characters, with comparison operations and an ASCII code"
legal: "See notice at end of class."
status: "See notice at end of class."
external_name: "System.Char"
assembly: "mscorlib"
date: "$Date: 2006-08-04 06:13:21 -0700 (Fri, 04 Aug 2006) $"
revision: "$Revision: 62257 $"
frozen expanded class interface
CHARACTER_8
create
default_create
ANY
make_from_reference (v: CHARACTER_8_REF)
`Current'`v.item'
CHARACTER_8_REF
require CHARACTER_8_REF
v_not_void: v /= Void
ensure CHARACTER_8_REF
item_set: item = v.item
convert
make_from_reference ({CHARACTER_8_REF}),
make_from_reference: {CHARACTER_32}
feature
code: INTEGER_32
CHARACTER_8_REF
generating_type: STRING_8
ANY
generator: STRING_8
ANY
hash_code: INTEGER_32
CHARACTER_8_REF
ensure HASHABLE
good_hash_value: Result >= 0
item: CHARACTER_8
CHARACTER_8_REF
max_value: INTEGER_32 is 255
CHARACTER_8_REF
min_value: INTEGER_32 is 0
CHARACTER_8_REF
natural_32_code: NATURAL_32
CHARACTER_8_REF
feature
frozen deep_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
shallow_implies_deep: standard_equal (some, other) implies Result
both_or_none_void: (some = Void) implies (Result = (other = Void))
same_type: (Result and (some /= Void)) implies some.same_type (other)
symmetric: Result implies deep_equal (other, some)
frozen equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))
is_equal (other: like Current): BOOLEAN
`other'
CHARACTER_8_REF
require ANY
other_not_void: other /= Void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
ensure then COMPARABLE
trichotomy: Result = (not (Current < other) and not (other < Current))
max (other: like Current): like Current
`other'
COMPARABLE
require COMPARABLE
other_exists: other /= Void
ensure COMPARABLE
current_if_not_smaller: Current >= other implies Result = Current
other_if_smaller: Current < other implies Result = other
min (other: like Current): like Current
`other'
COMPARABLE
require COMPARABLE
other_exists: other /= Void
ensure COMPARABLE
current_if_not_greater: Current <= other implies Result = Current
other_if_greater: Current > other implies Result = other
frozen standard_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.standard_is_equal (other))
frozen standard_is_equal (other: like Current): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
same_type: Result implies same_type (other)
symmetric: Result implies other.standard_is_equal (Current)
three_way_comparison (other: like Current): INTEGER_32
`other'
COMPARABLE
require COMPARABLE
other_exists: other /= Void
ensure COMPARABLE
equal_zero: (Result = 0) = is_equal (other)
smaller_negative: (Result = -1) = (Current < other)
greater_positive: (Result = 1) = (Current > other)
infix "<" (other: like Current): BOOLEAN
`other'
CHARACTER_8_REF
require PART_COMPARABLE
other_exists: other /= Void
ensure then COMPARABLE
asymmetric: Result implies not (other < Current)
ensure then CHARACTER_8_REF
definition: Result = (item.code < other.code)
infix "<=" (other: like Current): BOOLEAN
`other'
COMPARABLE
require PART_COMPARABLE
other_exists: other /= Void
ensure then COMPARABLE
definition: Result = ((Current < other) or is_equal (other))
infix ">" (other: like Current): BOOLEAN
`other'
COMPARABLE
require PART_COMPARABLE
other_exists: other /= Void
ensure then COMPARABLE
definition: Result = (other < Current)
infix ">=" (other: like Current): BOOLEAN
`other'
COMPARABLE
require PART_COMPARABLE
other_exists: other /= Void
ensure then COMPARABLE
definition: Result = (other <= Current)
feature
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
is_alpha: BOOLEAN
item
is_upperis_lower
CHARACTER_8_REF
is_alpha_numeric: BOOLEAN
item
CHARACTER_8_REF
is_control: BOOLEAN
item
CHARACTER_8_REF
is_digit: BOOLEAN
item
CHARACTER_8_REF
is_graph: BOOLEAN
item
CHARACTER_8_REF
is_hashable: BOOLEAN
CHARACTER_8_REF
ensure HASHABLE
ok_if_not_default: Result implies (Current /= default)
is_hexa_digit: BOOLEAN
item
CHARACTER_8_REF
is_lower: BOOLEAN
item
CHARACTER_8_REF
is_printable: BOOLEAN
item
CHARACTER_8_REF
is_punctuation: BOOLEAN
item
CHARACTER_8_REF
is_space: BOOLEAN
item
CHARACTER_8_REF
is_upper: BOOLEAN
item
CHARACTER_8_REF
same_type (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
definition: Result = (conforms_to (other) and other.conforms_to (Current))
feature
set_item (c: CHARACTER_8)
`c'item
CHARACTER_8_REF
feature
as_lower: CHARACTER_8
item
itemis_upper
CHARACTER_8_REFlower
CHARACTER_8_REF
as_upper: CHARACTER_8
item
itemis_lower
CHARACTER_8_REFupper
CHARACTER_8_REF
lower: CHARACTER_8
item
itemis_upper
CHARACTER_8_REFas_lower
CHARACTER_8_REF
to_character_32: CHARACTER_32
CHARACTER_8_REF
to_character_8: CHARACTER_8
CHARACTER_8_REF
to_reference: CHARACTER_8_REF
CHARACTER_8_REF
ensure CHARACTER_8_REF
to_reference_not_void: Result /= Void
upper: CHARACTER_8
item
itemis_lower
CHARACTER_8_REFas_upper
CHARACTER_8_REF
feature
copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_equal: is_equal (other)
frozen deep_copy (other: like Current)
copy`other'deep_twin
ANY
require ANY
other_not_void: other /= Void
ensure ANY
deep_equal: deep_equal (Current, other)
frozen deep_twin: like Current
ANY
ensure ANY
deep_equal: deep_equal (Current, Result)
frozen standard_copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_standard_equal: standard_is_equal (other)
frozen standard_twin: like Current
`other'
ANY
ensure ANY
standard_twin_not_void: Result /= Void
equal: standard_equal (Result, Current)
frozen twin: like Current
`Current'
twincopycopy
ANY
ensure ANY
twin_not_void: Result /= Void
is_equal: Result.is_equal (Current)
feature
frozen default: like Current
ANY
frozen default_pointer: POINTER
`POINTER'
`p'default
`p'`POINTER'
ANY
default_rescue
ANY
frozen do_nothing
ANY
feature
next: CHARACTER_8
CHARACTER_8_REF
require CHARACTER_8_REF
valid_character: (item.code + 1).is_valid_character_8_code
ensure CHARACTER_8_REF
valid_result: Result |-| item = 1
previous: CHARACTER_8
CHARACTER_8_REF
require CHARACTER_8_REF
valid_character: (item.code - 1).is_valid_character_8_code
ensure CHARACTER_8_REF
valid_result: Result |-| item = -1
infix "+" (incr: INTEGER_32): CHARACTER_8
`incr'item
CHARACTER_8_REF
require CHARACTER_8_REF
valid_increment: (item.code + incr).is_valid_character_8_code
ensure CHARACTER_8_REF
valid_result: Result |-| item = incr
infix "-" (decr: INTEGER_32): CHARACTER_8
`decr'item
CHARACTER_8_REF
require CHARACTER_8_REF
valid_decrement: (item.code - decr).is_valid_character_8_code
ensure CHARACTER_8_REF
valid_result: item |-| Result = decr
infix "|-|" (other: CHARACTER_8): INTEGER_32
item`other'
CHARACTER_8_REF
ensure CHARACTER_8_REF
valid_result: other + Result = item
feature
fixme (comment: STRING_8)
`comment'
REFACTORING_HELPER
require REFACTORING_HELPER
comment_not_void: comment /= Void
to_implement (comment: STRING_8)
`comment'
REFACTORING_HELPER
require REFACTORING_HELPER
comment_not_void: comment /= Void
to_implement_assertion (comment: STRING_8): BOOLEAN
`comment'
REFACTORING_HELPER
require REFACTORING_HELPER
comment_not_void: comment /= Void
feature
io: STD_FILES
ANY
out: STRING_8
CHARACTER_8_REF
print (some: ANY)
`some'
ANY
frozen tagged_out: STRING_8
ANYout
ANY
feature
operating_environment: OPERATING_ENVIRONMENT
ANY
invariant
COMPARABLE
irreflexive_comparison: not (Current < Current)
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
indexing
library: "EiffelBase: Library of reusable components for Eiffel."
copyright: "Copyright (c) 1984-2006, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software
356 Storke Road, Goleta, CA 93117 USA
Telephone 805-685-1006, Fax 805-685-6869
Website http://www.eiffel.com
Customer support http://support.eiffel.com
]"
end CHARACTER_8