indexing
description: "Abstract convertor for string to number conversion"
legal: "See notice at end of class."
status: "See notice at end of class."
author: ""
date: "$Date: 2006-03-22 15:17:14 -0800 (Wed, 22 Mar 2006) $"
revision: "$Revision: 57607 $"
deferred class interface
STRING_TO_NUMERIC_CONVERTOR
feature
generating_type: STRING_8
ANY
generator: STRING_8
ANY
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'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
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)
feature
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
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_leading_separators (separators: STRING_8)
leading_separators`separators'
require
separators_not_void: separators /= Void
separators_valid: separators_valid (separators)
ensure
leading_separators_set: leading_separators.is_equal (separators)
set_leading_separators_acceptable (b: BOOLEAN)
leading_separators_acceptable`b'
ensure
leading_separators_acceptable_set: leading_separators_acceptable = b
set_trailing_separators (separators: STRING_8)
trailing_separators`separators'
require
separators_not_void: separators /= Void
separators_valid: separators_valid (separators)
ensure
trailing_separators_set: trailing_separators.is_equal (separators)
set_trailing_separators_acceptable (b: BOOLEAN)
trailing_separators_acceptable`b'
ensure
trailing_separators_acceptable_set: trailing_separators_acceptable = b
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
io: STD_FILES
ANY
out: STRING_8
ANYtagged_out
ANY
print (some: ANY)
`some'
ANY
frozen tagged_out: STRING_8
ANYout
ANY
feature
parse_character (c: CHARACTER_8)
`c'
overflowedunderflowedparse_successful
parse_string_with_type (s: STRING_GENERAL; type: INTEGER_32)
reset
`s'`type'
overflowedunderflowedparse_successful
`NUMBER_INFORMATION'`type'
require
s_not_void: s /= Void
s_is_valid_as_string_8: s.is_valid_as_string_8
type_valid: conversion_type_valid (type)
feature
operating_environment: OPERATING_ENVIRONMENT
ANY
feature
reset (type: INTEGER_32)
`type'
`NUMBER_INFORMATION'`type'
require
type_valid: conversion_type_valid (type)
ensure
last_state_set: last_state = 0
sign_set: sign = 0
conversion_type_set: conversion_type = type
not_overflowed: not overflowed
not_underflowed: not underflowed
parse_successful: parse_successful
feature
conversion_type: INTEGER_32
`NUMBER_INFORMATION'
conversion_type_valid (type: INTEGER_32): BOOLEAN
`type'
`NUMBER_INFORMATION'
leading_separators: STRING_8
leading_separators_acceptable: BOOLEAN
overflowed: BOOLEAN
parse_successful: BOOLEAN
separators_valid (separators: STRING_8): BOOLEAN
`separators'
require
separators_not_void: separators /= Void
trailing_separators: STRING_8
trailing_separators_acceptable: BOOLEAN
underflowed: BOOLEAN
feature
double_type_valid (type: INTEGER_32): BOOLEAN
`type'
NUMERIC_INFORMATION
integer_natural_type_valid (type: INTEGER_32): BOOLEAN
`type'
NUMERIC_INFORMATION
integer_type_valid (type: INTEGER_32): BOOLEAN
`type'
NUMERIC_INFORMATION
natural_type_valid (type: INTEGER_32): BOOLEAN
`type'
NUMERIC_INFORMATION
read_type_valid (type: INTEGER_32): BOOLEAN
`type'
NUMERIC_INFORMATION
real_double_type_valid (type: INTEGER_32): BOOLEAN
`type'
NUMERIC_INFORMATION
feature
max_integer_type: INTEGER_64
NUMERIC_INFORMATION
max_natural_type: NATURAL_64
NUMERIC_INFORMATION
type_count: INTEGER_32 is 4
NUMERIC_INFORMATION
type_double: INTEGER_32 is 101
NUMERIC_INFORMATION
type_integer: INTEGER_32 is 3
NUMERIC_INFORMATIONType_integer_32
NUMERIC_INFORMATION
type_integer_16: INTEGER_32 is 2
NUMERIC_INFORMATION
type_integer_32: INTEGER_32 is 3
NUMERIC_INFORMATIONType_integer
NUMERIC_INFORMATION
type_integer_64: INTEGER_32 is 4
NUMERIC_INFORMATION
type_integer_8: INTEGER_32 is 1
NUMERIC_INFORMATION
type_integer_natural_separator: INTEGER_32 is 10
NUMERIC_INFORMATION
type_natural: INTEGER_32 is 13
NUMERIC_INFORMATIONType_natural_32
NUMERIC_INFORMATION
type_natural_16: INTEGER_32 is 12
NUMERIC_INFORMATION
type_natural_32: INTEGER_32 is 13
NUMERIC_INFORMATIONType_natural
NUMERIC_INFORMATION
type_natural_64: INTEGER_32 is 14
NUMERIC_INFORMATION
type_natural_8: INTEGER_32 is 11
NUMERIC_INFORMATION
type_no_limitation: INTEGER_32 is 0
NUMERIC_INFORMATION
type_real: INTEGER_32 is 100
NUMERIC_INFORMATION
invariant
leading_separators_not_void: leading_separators /= Void
trailing_separators_not_void: trailing_separators /= Void
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 STRING_TO_NUMERIC_CONVERTOR