    indexing
    	description: "Implementation of DB_SELECTION"
    	legal: "See notice at end of class."
    	status: "See notice at end of class."
    	date: "$Date: 2006-01-22 18:25:44 -0800 (Sun, 22 Jan 2006) $"
    	revision: "$Revision: 56675 $"

    class interface
    	DATABASE_SELECTION [G -> DATABASE create default_create end]

    create
    	make (i: INTEGER_32)
    			-- Create format and allocate string.
    			-- (from SQL_SCAN)

    create {DATABASE_SELECTION}
    	string_make (n: INTEGER_32)
    			-- Allocate space for at least `n' characters.
    			-- (from STRING_8)
    		require -- from STRING_8
    			non_negative_size: n >= 0
    		ensure -- from STRING_8
    			empty_string: count = 0
    			area_allocated: capacity >= n

    feature -- Initialization

    	adapt (s: STRING_8): like Current
    			-- Object of a type conforming to the type of `s',
    			-- initialized with attributes from `s'
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			adapt_not_void: Result /= Void
    			shared_implementation: Result.shared_with (s)

    	from_c (c_string: POINTER)
    			-- Reset contents of string from contents of `c_string',
    			-- a string created by some C function.
    			-- (from STRING_8)
    		require -- from STRING_8
    			c_string_exists: c_string /= default_pointer
    		ensure -- from STRING_8
    			no_zero_byte: not has ('%U')

    	from_c_substring (c_string: POINTER; start_pos, end_pos: INTEGER_32)
    			-- Reset contents of string from substring of `c_string',
    			-- a string created by some C function.
    			-- (from STRING_8)
    		require -- from STRING_8
    			c_string_exists: c_string /= default_pointer
    			start_position_big_enough: start_pos >= 1
    			end_position_big_enough: start_pos <= end_pos + 1
    		ensure -- from STRING_8
    			valid_count: count = end_pos - start_pos + 1

    	make (i: INTEGER_32)
    			-- Create format and allocate string.
    			-- (from SQL_SCAN)

    	string_make (n: INTEGER_32)
    			-- Allocate space for at least `n' characters.
    			-- (from STRING_8)
    		require -- from STRING_8
    			non_negative_size: n >= 0
    		ensure -- from STRING_8
    			empty_string: count = 0
    			area_allocated: capacity >= n

    	format_make
    			-- Create an interface object to format data.
    			-- (from DB_FORMAT)

    	make_empty
    			-- Create empty string.
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			empty: count = 0
    			area_allocated: capacity >= 0

    	make_filled (c: CHARACTER_8; n: INTEGER_32)
    			-- Create string of length `n' filled with `c'.
    			-- (from STRING_8)
    		require -- from STRING_8
    			valid_count: n >= 0
    		ensure -- from STRING_8
    			count_set: count = n
    			area_allocated: capacity >= n
    			filled: occurrences (c) = count

    	make_from_c (c_string: POINTER)
    			-- Initialize from contents of `c_string',
    			-- a string created by some C function
    			-- (from STRING_8)
    		require -- from STRING_8
    			c_string_exists: c_string /= default_pointer

    	make_from_cil (a_system_string: SYSTEM_STRING)
    			-- Initialize Current with `a_system_string'.
    			-- (from STRING_8)
    		require -- from STRING_8
    			is_dotnet: {PLATFORM}.is_dotnet

    	make_from_string (s: STRING_8)
    			-- Initialize from the characters of `s'.
    			-- (Useful in proper descendants of class STRING,
    			-- to initialize a string-like object from a manifest string.)
    			-- (from STRING_8)
    		require -- from STRING_8
    			string_exists: s /= Void
    		ensure -- from STRING_8
    			not_shared_implementation: Current /= s implies not shared_with (s)
    			initialized: same_string (s)

    feature -- Access

    	area: SPECIAL [CHARACTER_8]
    			-- Special data zone
    			-- (from TO_SPECIAL)

    	bit_type: INTEGER_32 is 8
    			-- (from INTERNAL)

    	boolean_field (i: INTEGER_32; object: ANY): BOOLEAN
    			-- Boolean value of `i'-th field of `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			boolean_field: field_type (i, object) = boolean_type

    	boolean_type: INTEGER_32 is 3
    			-- (from INTERNAL)

    	character_32_type: INTEGER_32 is 12
    			-- Was declared in INTERNAL as synonym of Wide_character_type.
    			-- (from INTERNAL)

    	character_8_type: INTEGER_32 is 2
    			-- Was declared in INTERNAL as synonym of Character_type.
    			-- (from INTERNAL)

    	character_field (i: INTEGER_32; object: ANY): CHARACTER_8
    			-- Character value of `i'-th field of `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			character_field: field_type (i, object) = character_type

    	character_type: INTEGER_32 is 2
    			-- Was declared in INTERNAL as synonym of Character_8_type.
    			-- (from INTERNAL)

    	class_name (object: ANY): STRING_8
    			-- Name of the class associated with `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void

    	class_name_of_type (type_id: INTEGER_32): STRING_8
    			-- Name of class associated with dynamic type `type_id'.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			type_id_nonnegative: type_id >= 0

    	code (i: INTEGER_32): NATURAL_32
    			-- Numeric code of character at position `i'
    			-- (from STRING_8)
    		require -- from STRING_GENERAL
    			valid_index: valid_index (i)

    	db_spec: DATABASE
    			-- Handle to actual database
    			-- (from HANDLE_SPEC)
    		ensure -- from HANDLE_SPEC
    			not_void: Result /= Void

    	double_field (i: INTEGER_32; object: ANY): REAL_64
    			-- Double precision value of `i'-th field of `object'
    			-- Was declared in INTERNAL as synonym of real_64_field.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			real_64_field: field_type (i, object) = real_64_type

    	double_type: INTEGER_32 is 6
    			-- Was declared in INTERNAL as synonym of Real_64_type.
    			-- (from INTERNAL)

    	dynamic_type (object: ANY): INTEGER_32
    			-- Dynamic type of `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    		ensure -- from INTERNAL
    			dynamic_type_nonnegative: Result >= 0

    	expanded_field_type (i: INTEGER_32; object: ANY): STRING_8
    			-- Class name associated with the `i'-th
    			-- expanded field of `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			is_expanded: field_type (i, object) = expanded_type
    		ensure -- from INTERNAL
    			result_exists: Result /= Void

    	expanded_type: INTEGER_32 is 7
    			-- (from INTERNAL)

    	false_constant: STRING_8 is "false"
    			-- Constant string "false"
    			-- (from STRING_8)

    	field (i: INTEGER_32; object: ANY): ANY
    			-- Object attached to the `i'-th field of `object'
    			-- (directly or through a reference)
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			not_special: not is_special (object)

    	field_name (i: INTEGER_32; object: ANY): STRING_8
    			-- Name of `i'-th field of `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			not_special: not is_special (object)
    		ensure -- from INTERNAL
    			result_exists: Result /= Void

    	field_name_of_type (i: INTEGER_32; type_id: INTEGER_32): STRING_8
    			-- Name of `i'-th field of dynamic type `type_id'.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			type_id_nonnegative: type_id >= 0
    			index_large_enough: i >= 1
    			index_small_enought: i <= field_count_of_type (type_id)

    	field_offset (i: INTEGER_32; object: ANY): INTEGER_32
    			-- Offset of `i'-th field of `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			not_special: not is_special (object)

    	field_static_type_of_type (i: INTEGER_32; type_id: INTEGER_32): INTEGER_32
    			-- Static type of declared `i'-th field of dynamic type `type_id'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			type_id_nonnegative: type_id >= 0
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count_of_type (type_id)
    		ensure -- from INTERNAL
    			field_type_nonnegative: Result >= 0

    	field_type (i: INTEGER_32; object: ANY): INTEGER_32
    			-- Abstract type of `i'-th field of `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    		ensure -- from INTERNAL
    			field_type_nonnegative: Result >= 0

    	field_type_of_type (i: INTEGER_32; type_id: INTEGER_32): INTEGER_32
    			-- Abstract type of `i'-th field of dynamic type `type_id'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			type_id_nonnegative: type_id >= 0
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count_of_type (type_id)
    		ensure -- from INTERNAL
    			field_type_nonnegative: Result >= 0

    	fuzzy_index (other: STRING_8; start: INTEGER_32; fuzz: INTEGER_32): INTEGER_32
    			-- Position of first occurrence of `other' at or after start
    			-- with 0..`fuzz' mismatches between the string and `other'.
    			-- 0 if there are no fuzzy matches
    			-- (from STRING_8)
    		require -- from STRING_8
    			other_exists: other /= Void
    			other_not_empty: not other.is_empty
    			start_large_enough: start >= 1
    			start_small_enough: start <= count
    			acceptable_fuzzy: fuzz <= other.count

    	generating_type: STRING_8
    			-- Name of current object's generating type
    			-- (type of which it is a direct instance)
    			-- (from ANY)

    	generator: STRING_8
    			-- Name of current object's generating class
    			-- (base class of the type of which it is a direct instance)
    			-- (from ANY)

    	generic_count (obj: ANY): INTEGER_32
    			-- Number of generic parameter in `obj'.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			obj_not_void: obj /= Void

    	generic_count_of_type (type_id: INTEGER_32): INTEGER_32
    			-- Number of generic parameter in `type_id'.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			type_id_nonnegative: type_id >= 0

    	generic_dynamic_type (object: ANY; i: INTEGER_32): INTEGER_32
    			-- Dynamic type of generic parameter of `object' at
    			-- position `i'.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			object_generic: generic_count (object) > 0
    			i_valid: i > 0 and i <= generic_count (object)
    		ensure -- from INTERNAL
    			dynamic_type_nonnegative: Result >= 0

    	generic_dynamic_type_of_type (type_id: INTEGER_32; i: INTEGER_32): INTEGER_32
    			-- Dynamic type of generic parameter of `type_id' at position `i'.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			type_id_nonnegative: type_id >= 0
    			type_id_generic: generic_count_of_type (type_id) > 0
    			i_valid: i > 0 and i <= generic_count_of_type (type_id)
    		ensure -- from INTERNAL
    			dynamic_type_nonnegative: Result >= 0

    	hash_code: INTEGER_32
    			-- Hash code value
    			-- (from STRING_8)
    		ensure -- from HASHABLE
    			good_hash_value: Result >= 0

    	index_of (c: CHARACTER_8; start_index: INTEGER_32): INTEGER_32
    			-- Position of first occurrence of `c' at or after `start_index';
    			-- 0 if none.
    			-- (from STRING_8)
    		require -- from STRING_8
    			start_large_enough: start_index >= 1
    			start_small_enough: start_index <= count + 1
    		ensure -- from STRING_8
    			valid_result: Result = 0 or (start_index <= Result and Result <= count)
    			zero_if_absent: (Result = 0) = not substring (start_index, count).has (c)
    			found_if_present: substring (start_index, count).has (c) implies item (Result) = c
    			none_before: substring (start_index, count).has (c) implies not substring (start_index, Result - 1).has (c)

    	index_of_code (c: like code; start_index: INTEGER_32): INTEGER_32
    			-- Position of first occurrence of `c' at or after `start_index';
    			-- 0 if none.
    			-- (from STRING_GENERAL)
    		require -- from STRING_GENERAL
    			start_large_enough: start_index >= 1
    			start_small_enough: start_index <= count + 1
    		ensure -- from STRING_GENERAL
    			valid_result: Result = 0 or (start_index <= Result and Result <= count)
    			zero_if_absent: (Result = 0) = not substring (start_index, count).has_code (c)
    			found_if_present: substring (start_index, count).has_code (c) implies code (Result) = c
    			none_before: substring (start_index, count).has_code (c) implies not substring (start_index, Result - 1).has_code (c)

    	integer_16_field (i: INTEGER_32; object: ANY): INTEGER_16
    			-- INTEGER_16 value of `i'-th field of `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			integer_16_field: field_type (i, object) = integer_16_type

    	integer_16_type: INTEGER_32 is 10
    			-- (from INTERNAL)

    	integer_32_field (i: INTEGER_32; object: ANY): INTEGER_32
    			-- INTEGER_32 value of `i'-th field of `object'
    			-- Was declared in INTERNAL as synonym of integer_field.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			integer_32_field: field_type (i, object) = integer_32_type

    	integer_32_type: INTEGER_32 is 4
    			-- Was declared in INTERNAL as synonym of Integer_type.
    			-- (from INTERNAL)

    	integer_64_field (i: INTEGER_32; object: ANY): INTEGER_64
    			-- INTEGER_64 value of `i'-th field of `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			integer_64_field: field_type (i, object) = integer_64_type

    	integer_64_type: INTEGER_32 is 11
    			-- (from INTERNAL)

    	integer_8_field (i: INTEGER_32; object: ANY): INTEGER_8
    			-- INTEGER_8 value of `i'-th field of `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			integer_8_field: field_type (i, object) = integer_8_type

    	integer_8_type: INTEGER_32 is 9
    			-- (from INTERNAL)

    	integer_field (i: INTEGER_32; object: ANY): INTEGER_32
    			-- INTEGER_32 value of `i'-th field of `object'
    			-- Was declared in INTERNAL as synonym of integer_32_field.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			integer_32_field: field_type (i, object) = integer_32_type

    	integer_type: INTEGER_32 is 4
    			-- Was declared in INTERNAL as synonym of Integer_32_type.
    			-- (from INTERNAL)

    	item (i: INTEGER_32): CHARACTER_8 assign put
    			-- Character at position `i'
    			-- Was declared in STRING_8 as synonym of infix "@".
    			-- (from STRING_8)
    		require -- from TABLE
    			valid_key: valid_index (i)
    		require -- from TO_SPECIAL
    			valid_index: valid_index (i)

    	item_code (i: INTEGER_32): INTEGER_32
    			-- Numeric code of character at position `i'
    			-- (from STRING_8)
    		require -- from STRING_8
    			index_small_enough: i <= count
    			index_large_enough: i > 0

    	last_index_of (c: CHARACTER_8; start_index_from_end: INTEGER_32): INTEGER_32
    			-- Position of last occurrence of `c'.
    			-- 0 if none
    			-- (from STRING_8)
    		require -- from STRING_8
    			start_index_small_enough: start_index_from_end <= count
    			start_index_large_enough: start_index_from_end >= 1
    		ensure -- from STRING_8
    			last_index_of_non_negative: Result >= 0
    			correct_place: Result > 0 implies item (Result) = c

    	last_parsed_query: STRING_8
    			-- Last parsed query

    	max_predefined_type: INTEGER_32 is 16
    			-- (from INTERNAL)

    	natural_16_field (i: INTEGER_32; object: ANY): NATURAL_16
    			-- NATURAL_16 value of `i'-th field of `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			natural_16_field: field_type (i, object) = natural_16_type

    	natural_16_type: INTEGER_32 is 14
    			-- (from INTERNAL)

    	natural_32_field (i: INTEGER_32; object: ANY): NATURAL_32
    			-- NATURAL_32 value of `i'-th field of `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			natural_32_field: field_type (i, object) = natural_32_type

    	natural_32_type: INTEGER_32 is 15
    			-- (from INTERNAL)

    	natural_64_field (i: INTEGER_32; object: ANY): NATURAL_64
    			-- NATURAL_64 value of `i'-th field of `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			natural_64_field: field_type (i, object) = natural_64_type

    	natural_64_type: INTEGER_32 is 16
    			-- (from INTERNAL)

    	natural_8_field (i: INTEGER_32; object: ANY): NATURAL_8
    			-- NATURAL_8 value of `i'-th field of `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			natural_8_field: field_type (i, object) = natural_8_type

    	natural_8_type: INTEGER_32 is 13
    			-- (from INTERNAL)

    	none_type: INTEGER_32 is -2
    			-- Type ID representation for NONE.
    			-- (from INTERNAL)

    	pointer_field (i: INTEGER_32; object: ANY): POINTER
    			-- Pointer value of `i'-th field of `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			pointer_field: field_type (i, object) = pointer_type

    	pointer_type: INTEGER_32 is 0
    			-- (from INTERNAL)

    	real_32_field (i: INTEGER_32; object: ANY): REAL_32
    			-- Real value of `i'-th field of `object'
    			-- Was declared in INTERNAL as synonym of real_field.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			real_32_field: field_type (i, object) = real_32_type

    	real_32_type: INTEGER_32 is 5
    			-- Was declared in INTERNAL as synonym of Real_type.
    			-- (from INTERNAL)

    	real_64_field (i: INTEGER_32; object: ANY): REAL_64
    			-- Double precision value of `i'-th field of `object'
    			-- Was declared in INTERNAL as synonym of double_field.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			real_64_field: field_type (i, object) = real_64_type

    	real_64_type: INTEGER_32 is 6
    			-- Was declared in INTERNAL as synonym of Double_type.
    			-- (from INTERNAL)

    	real_field (i: INTEGER_32; object: ANY): REAL_32
    			-- Real value of `i'-th field of `object'
    			-- Was declared in INTERNAL as synonym of real_32_field.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			real_32_field: field_type (i, object) = real_32_type

    	real_type: INTEGER_32 is 5
    			-- Was declared in INTERNAL as synonym of Real_32_type.
    			-- (from INTERNAL)

    	reference_type: INTEGER_32 is 1
    			-- (from INTERNAL)

    	shared_with (other: STRING_8): BOOLEAN
    			-- Does string share the text of `other'?
    			-- (from STRING_8)

    	string: STRING_8
    			-- New STRING having same character sequence as `Current'.
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			string_not_void: Result /= Void
    			string_type: Result.same_type ("")
    			first_item: count > 0 implies Result.item (1) = item (1)
    			recurse: count > 1 implies Result.substring (2, count).is_equal (substring (2, count).string)

    	substring_index (other: STRING_8; start_index: INTEGER_32): INTEGER_32
    			-- Index of first occurrence of other at or after start_index;
    			-- 0 if none
    			-- (from STRING_8)
    		require -- from STRING_8
    			other_not_void: other /= Void
    			valid_start_index: start_index >= 1 and start_index <= count + 1
    		ensure -- from STRING_8
    			valid_result: Result = 0 or else (start_index <= Result and Result <= count - other.count + 1)
    			zero_if_absent: (Result = 0) = not substring (start_index, count).has_substring (other)
    			at_this_index: Result >= start_index implies other.same_string (substring (Result, Result + other.count - 1))
    			none_before: Result > start_index implies not substring (start_index, Result + other.count - 2).has_substring (other)

    	substring_index_in_bounds (other: STRING_8; start_pos, end_pos: INTEGER_32): INTEGER_32
    			-- Position of first occurrence of `other' at or after `start_pos'
    			-- and to or before `end_pos';
    			-- 0 if none.
    			-- (from STRING_8)
    		require -- from STRING_8
    			other_nonvoid: other /= Void
    			other_notempty: not other.is_empty
    			start_pos_large_enough: start_pos >= 1
    			start_pos_small_enough: start_pos <= count
    			end_pos_large_enough: end_pos >= start_pos
    			end_pos_small_enough: end_pos <= count
    		ensure -- from STRING_8
    			correct_place: Result > 0 implies other.is_equal (substring (Result, Result + other.count - 1))

    	true_constant: STRING_8 is "true"
    			-- Constant string "true"
    			-- (from STRING_8)

    	type_name (object: ANY): STRING_8
    			-- Name of `object''s generating type (type of which `object'
    			-- is a direct instance).
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void

    	type_name_of_type (type_id: INTEGER_32): STRING_8
    			-- Name of `type_id''s generating type (type of which `type_id'
    			-- is a direct instance).
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			type_id_nonnegative: type_id >= 0

    	wide_character_type: INTEGER_32 is 12
    			-- Was declared in INTERNAL as synonym of Character_32_type.
    			-- (from INTERNAL)

    	infix "@" (i: INTEGER_32): CHARACTER_8 assign put
    			-- Character at position `i'
    			-- Was declared in STRING_8 as synonym of item.
    			-- (from STRING_8)
    		require -- from TABLE
    			valid_key: valid_index (i)
    		require -- from TO_SPECIAL
    			valid_index: valid_index (i)

    feature -- Measurement

    	additional_space: INTEGER_32
    			-- Proposed number of additional items
    			-- (from RESIZABLE)
    		ensure -- from RESIZABLE
    			at_least_one: Result >= 1

    	bit_size (i: INTEGER_32; object: ANY): INTEGER_32
    			-- Size (in bit) of the `i'-th bit field of `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			is_bit: field_type (i, object) = bit_type
    		ensure -- from INTERNAL
    			positive_result: Result > 0

    	capacity: INTEGER_32
    			-- Allocated space
    			-- (from STRING_8)
    		require -- from  BOUNDED
    			True
    		require -- from  STRING_GENERAL
    			True
    		ensure -- from STRING_GENERAL
    			capacity_non_negative: Result >= 0

    	count: INTEGER_32
    			-- Actual number of characters making up the string
    			-- (from STRING_8)

    	field_count (object: ANY): INTEGER_32
    			-- Number of logical fields in `object'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void

    	field_count_of_type (type_id: INTEGER_32): INTEGER_32
    			-- Number of logical fields in dynamic type `type_id'.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			type_id_nonnegative: type_id >= 0

    	growth_percentage: INTEGER_32 is 50
    			-- Percentage by which structure will grow automatically
    			-- (from RESIZABLE)

    	index_set: INTEGER_INTERVAL
    			-- Range of acceptable indexes
    			-- (from STRING_8)
    		require -- from  INDEXABLE
    			True
    		ensure -- from INDEXABLE
    			not_void: Result /= Void
    		ensure then -- from STRING_8
    			Result.count = count

    	minimal_increase: INTEGER_32 is 5
    			-- Minimal number of additional items
    			-- (from RESIZABLE)

    	occurrences (c: CHARACTER_8): INTEGER_32
    			-- Number of times `c' appears in the string
    			-- (from STRING_8)
    		require -- from  BAG
    			True
    		ensure -- from BAG
    			non_negative_occurrences: Result >= 0
    		ensure then -- from STRING_8
    			zero_if_empty: count = 0 implies Result = 0
    			recurse_if_not_found_at_first_position: (count > 0 and then item (1) /= c) implies Result = substring (2, count).occurrences (c)
    			recurse_if_found_at_first_position: (count > 0 and then item (1) = c) implies Result = 1 + substring (2, count).occurrences (c)

    	physical_size (object: ANY): INTEGER_32
    			-- Space occupied by `object' in bytes
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void

    feature -- Comparison

    	frozen deep_equal (some: ANY; other: like arg #1): BOOLEAN
    			-- Are `some' and `other' either both void
    			-- or attached to isomorphic object structures?
    			-- (from ANY)
    		ensure -- from 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
    			-- Are `some' and `other' either both void or attached
    			-- to objects considered equal?
    			-- (from ANY)
    		ensure -- from ANY
    			definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))

    	is_case_insensitive_equal (other: like Current): BOOLEAN
    			-- Is string made of same character sequence as `other' regardless of casing
    			-- (possibly with a different capacity)?
    			-- (from STRING_8)
    		require -- from STRING_8
    			other_not_void: other /= Void
    		ensure -- from STRING_8
    			symmetric: Result implies other.is_case_insensitive_equal (Current)
    			consistent: standard_is_equal (other) implies Result
    			valid_result: as_lower.is_equal (other.as_lower) implies Result

    	is_equal (other: like Current): BOOLEAN
    			-- Is string made of same character sequence as `other'
    			-- (possibly with a different capacity)?
    			-- (from STRING_8)
    		require -- from ANY
    			other_not_void: other /= Void
    		ensure -- from ANY
    			symmetric: Result implies other.is_equal (Current)
    			consistent: standard_is_equal (other) implies Result
    		ensure then -- from COMPARABLE
    			trichotomy: Result = (not (Current < other) and not (other < Current))

    	max (other: like Current): like Current
    			-- The greater of current object and `other'
    			-- (from COMPARABLE)
    		require -- from COMPARABLE
    			other_exists: other /= Void
    		ensure -- from COMPARABLE
    			current_if_not_smaller: Current >= other implies Result = Current
    			other_if_smaller: Current < other implies Result = other

    	min (other: like Current): like Current
    			-- The smaller of current object and `other'
    			-- (from COMPARABLE)
    		require -- from COMPARABLE
    			other_exists: other /= Void
    		ensure -- from COMPARABLE
    			current_if_not_greater: Current <= other implies Result = Current
    			other_if_greater: Current > other implies Result = other

    	same_string (other: STRING_8): BOOLEAN
    			-- Do `Current' and `other' have same character sequence?
    			-- (from STRING_8)
    		require -- from STRING_8
    			other_not_void: other /= Void
    		ensure -- from STRING_8
    			definition: Result = string.is_equal (other.string)

    	frozen standard_equal (some: ANY; other: like arg #1): BOOLEAN
    			-- Are `some' and `other' either both void or attached to
    			-- field-by-field identical objects of the same type?
    			-- Always uses default object comparison criterion.
    			-- (from ANY)
    		ensure -- from 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
    			-- Is `other' attached to an object of the same type
    			-- as current object, and field-by-field identical to it?
    			-- (from ANY)
    		require -- from ANY
    			other_not_void: other /= Void
    		ensure -- from ANY
    			same_type: Result implies same_type (other)
    			symmetric: Result implies other.standard_is_equal (Current)

    	three_way_comparison (other: like Current): INTEGER_32
    			-- If current object equal to `other', 0;
    			-- if smaller, -1; if greater, 1
    			-- (from COMPARABLE)
    		require -- from COMPARABLE
    			other_exists: other /= Void
    		ensure -- from 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
    			-- Is string lexicographically lower than `other'?
    			-- (from STRING_8)
    		require -- from PART_COMPARABLE
    			other_exists: other /= Void
    		ensure then -- from COMPARABLE
    			asymmetric: Result implies not (other < Current)

    	infix "<=" (other: like Current): BOOLEAN
    			-- Is current object less than or equal to `other'?
    			-- (from COMPARABLE)
    		require -- from PART_COMPARABLE
    			other_exists: other /= Void
    		ensure then -- from COMPARABLE
    			definition: Result = ((Current < other) or is_equal (other))

    	infix ">" (other: like Current): BOOLEAN
    			-- Is current object greater than `other'?
    			-- (from COMPARABLE)
    		require -- from PART_COMPARABLE
    			other_exists: other /= Void
    		ensure then -- from COMPARABLE
    			definition: Result = (other < Current)

    	infix ">=" (other: like Current): BOOLEAN
    			-- Is current object greater than or equal to `other'?
    			-- (from COMPARABLE)
    		require -- from PART_COMPARABLE
    			other_exists: other /= Void
    		ensure then -- from COMPARABLE
    			definition: Result = (other <= Current)

    feature -- Status report

    	changeable_comparison_criterion: BOOLEAN is False
    			-- (from STRING_8)

    	conforms_to (other: ANY): BOOLEAN
    			-- Does type of current object conform to type
    			-- of `other' (as per Eiffel: The Language, chapter 13)?
    			-- (from ANY)
    		require -- from ANY
    			other_not_void: other /= Void

    	descriptor: INTEGER_32
    			-- Cursor descriptor index

    	descriptor_available: BOOLEAN
    			-- Is a new cursor descriptor available?

    	extendible: BOOLEAN is True
    			-- May new items be added? (Answer: yes.)
    			-- (from STRING_8)

    	full: BOOLEAN
    			-- Is structure full?
    			-- (from BOUNDED)

    	has (c: CHARACTER_8): BOOLEAN
    			-- Does string include `c'?
    			-- (from STRING_8)
    		require -- from  CONTAINER
    			True
    		ensure -- from CONTAINER
    			not_found_in_empty: Result implies not is_empty
    		ensure then -- from STRING_8
    			false_if_empty: count = 0 implies not Result
    			true_if_first: count > 0 and then item (1) = c implies Result
    			recurse: (count > 0 and then item (1) /= c) implies (Result = substring (2, count).has (c))

    	has_code (c: like code): BOOLEAN
    			-- Does string include `c'?
    			-- (from STRING_GENERAL)
    		ensure then -- from STRING_GENERAL
    			false_if_empty: count = 0 implies not Result
    			true_if_first: count > 0 and then code (1) = c implies Result
    			recurse: (count > 0 and then code (1) /= c) implies (Result = substring (2, count).has_code (c))

    	has_substring (other: STRING_8): BOOLEAN
    			-- Does `Current' contain `other'?
    			-- (from STRING_8)
    		require -- from STRING_8
    			other_not_void: other /= Void
    		ensure -- from STRING_8
    			false_if_too_small: count < other.count implies not Result
    			true_if_initial: (count >= other.count and then other.same_string (substring (1, other.count))) implies Result
    			recurse: (count >= other.count and then not other.same_string (substring (1, other.count))) implies (Result = substring (2, count).has_substring (other))

    	ht: HASH_TABLE [ANY, STRING_8]
    			-- Correspondence table between object references
    			-- and mapped keys
    			-- (from STRING_HDL)

    	ht_order: ARRAYED_LIST [STRING_8]
    			-- Keys of ht in order of mapping
    			-- (from STRING_HDL)

    	immediate_execution: BOOLEAN
    			-- Are requests immediately executed?
    			-- (default is `no').
    			-- (from DB_EXEC_USE)

    	string_is_boolean: BOOLEAN
    			-- Does `Current' represent a BOOLEAN?
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			is_boolean: Result = (true_constant.same_string (as_lower) or false_constant.same_string (as_lower))

    	string_is_double: BOOLEAN
    			-- Does `Current' represent a DOUBLE?
    			-- (from STRING_8)

    	is_empty: BOOLEAN
    			-- Is structure empty?
    			-- (from FINITE)
    		require -- from  CONTAINER
    			True
    		require -- from  STRING_GENERAL
    			True

    	is_hashable: BOOLEAN
    			-- May current object be hashed?
    			-- (True if it is not its type's default.)
    			-- (from HASHABLE)
    		ensure -- from HASHABLE
    			ok_if_not_default: Result implies (Current /= default)

    	is_inserted (v: CHARACTER_8): BOOLEAN
    			-- Has `v' been inserted by the most recent insertion?
    			-- (By default, the value returned is equivalent to calling
    			-- `has (v)'. However, descendants might be able to provide more
    			-- efficient implementations.)
    			-- (from COLLECTION)

    	string_is_integer: BOOLEAN
    			-- Does `Current' represent an INTEGER?
    			-- Was declared in STRING_8 as synonym of is_integer_32.
    			-- (from STRING_8)

    	is_integer_16: BOOLEAN
    			-- Does `Current' represent an INTEGER_16?
    			-- (from STRING_8)

    	is_integer_32: BOOLEAN
    			-- Does `Current' represent an INTEGER?
    			-- Was declared in STRING_8 as synonym of is_integer.
    			-- (from STRING_8)

    	is_integer_64: BOOLEAN
    			-- Does `Current' represent an INTEGER_64?
    			-- (from STRING_8)

    	is_integer_8: BOOLEAN
    			-- Does `Current' represent an INTEGER_8?
    			-- (from STRING_8)

    	is_mapped (key: STRING_8): BOOLEAN
    			-- Is `key' mapped to an Eiffel entity?
    			-- (from STRING_HDL)
    		require -- from STRING_HDL
    			ht_not_void: ht /= Void
    			keys_exists: key /= Void

    	is_marked (obj: ANY): BOOLEAN
    			-- Is `obj' marked?
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_exists: obj /= Void

    	is_natural: BOOLEAN
    			-- Does `Current' represent a NATURAL_32?
    			-- Was declared in STRING_8 as synonym of is_natural_32.
    			-- (from STRING_8)

    	is_natural_16: BOOLEAN
    			-- Does `Current' represent a NATURAL_16?
    			-- (from STRING_8)

    	is_natural_32: BOOLEAN
    			-- Does `Current' represent a NATURAL_32?
    			-- Was declared in STRING_8 as synonym of is_natural.
    			-- (from STRING_8)

    	is_natural_64: BOOLEAN
    			-- Does `Current' represent a NATURAL_64?
    			-- (from STRING_8)

    	is_natural_8: BOOLEAN
    			-- Does `Current' represent a NATURAL_8?
    			-- (from STRING_8)

    	is_number_sequence: BOOLEAN
    			-- Does `Current' represent a number sequence?
    			-- (from STRING_8)

    	is_pre_ecma_mapping_disabled: BOOLEAN
    			-- Are we mapping old names to new ECMA names?
    			-- False means. mapping STRING to STRING_8, INTEGER to INTEGER_32,...
    			-- (from INTERNAL_HELPER)

    	string_is_real: BOOLEAN
    			-- Does `Current' represent a REAL?
    			-- (from STRING_8)

    	is_special (object: ANY): BOOLEAN
    			-- Is `object' a special object?
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void

    	is_special_any_type (type_id: INTEGER_32): BOOLEAN
    			-- Is type represented by `type_id' represent
    			-- a SPECIAL [XX] where XX is a reference type.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			type_id_nonnegative: type_id >= 0

    	is_special_type (type_id: INTEGER_32): BOOLEAN
    			-- Is type represented by `type_id' represent
    			-- a SPECIAL [XX] where XX is a reference type
    			-- or a basic type.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			type_id_nonnegative: type_id >= 0

    	is_string_32: BOOLEAN is False
    			-- Current is a STRING_32 instance
    			-- (from STRING_8)

    	is_string_8: BOOLEAN is True
    			-- Current is not a STRING_8 instance
    			-- (from STRING_8)

    	is_tracing: BOOLEAN
    			-- Is trace option for SQL queries on?
    			-- (from DB_EXEC_USE)

    	is_tuple (object: ANY): BOOLEAN
    			-- Is `object' a TUPLE object?
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void

    	is_tuple_type (type_id: INTEGER_32): BOOLEAN
    			-- Is type represented by `type_id' represent a TUPLE?
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			type_id_nonnegative: type_id >= 0

    	is_valid_as_string_8: BOOLEAN is True
    			-- Is `Current' convertible to STRING_8 without information loss?
    			-- (from STRING_8)

    	is_valid_type_string (s: STRING_8): BOOLEAN
    			-- Is `s' a valid string representation for a TYPE.
    			-- (from INTERNAL_HELPER)
    		require -- from INTERNAL_HELPER
    			s_not_void: s /= Void
    			s_not_empty: not s.is_empty

    	mapped_type (a_type: STRING_8): STRING_8
    			-- If is_pre_ecma_mapping_disabled `a_type', otherwise
    			-- the mapped typed.
    			-- (from INTERNAL_HELPER)
    		require -- from INTERNAL_HELPER
    			a_type_not_void: a_type /= Void
    		ensure -- from INTERNAL_HELPER
    			mapped_type_not_void: Result /= Void

    	mapped_value (key: STRING_8): ANY
    			-- Value mapped with `key'
    			-- (from STRING_HDL)
    		require -- from STRING_HDL
    			ht_not_void: ht /= Void
    			key_exists: key /= Void
    			key_mapped: is_mapped (key)
    		ensure -- from STRING_HDL
    			result_exists: Result /= Void

    	object_comparison: BOOLEAN
    			-- Must search operations use equal rather than `='
    			-- for comparing references? (Default: no, use `='.)
    			-- (from CONTAINER)

    	prunable: BOOLEAN
    			-- May items be removed? (Answer: yes.)
    			-- (from STRING_8)

    	resizable: BOOLEAN
    			-- May capacity be changed? (Answer: yes.)
    			-- (from RESIZABLE)

    	same_type (other: ANY): BOOLEAN
    			-- Is type of current object identical to type of `other'?
    			-- (from ANY)
    		require -- from ANY
    			other_not_void: other /= Void
    		ensure -- from ANY
    			definition: Result = (conforms_to (other) and other.conforms_to (Current))

    	trace_output: FILE
    			-- Trace destination file
    			-- (from DB_EXEC_USE)

    	valid_code (v: NATURAL_32): BOOLEAN
    			-- Is `v' a valid code for a CHARACTER_32?
    			-- (from STRING_8)

    	valid_index (i: INTEGER_32): BOOLEAN
    			-- Is `i' within the bounds of the string?
    			-- (from STRING_8)
    		require -- from  TABLE
    			True
    		require -- from  STRING_GENERAL
    			True
    		require -- from  TO_SPECIAL
    			True
    		ensure then -- from INDEXABLE
    			only_if_in_index_set: Result implies ((i >= index_set.lower) and (i <= index_set.upper))

    feature {ANY} -- Status report

    	is_connected: BOOLEAN
    			-- Has connection to the database server succeeded?
    			-- (from DB_STATUS_USE)

    	is_ok: BOOLEAN
    			-- Is last SQL statement ok ?
    			-- (from DB_STATUS_USE)

    feature -- Status setting

    	clear_all
    			-- Remove all mapped keys.
    			-- (from STRING_HDL)
    		require -- from  STRING_8
    			True
    		require -- from STRING_HDL
    			ht_not_void: ht /= Void
    		ensure -- from STRING_8
    			is_empty: count = 0
    			same_capacity: capacity = old capacity

    	compare_objects
    			-- Ensure that future search operations will use equal
    			-- rather than `=' for comparing references.
    			-- (from CONTAINER)
    		require -- from CONTAINER
    			changeable_comparison_criterion: changeable_comparison_criterion
    		ensure -- from CONTAINER
    			object_comparison

    	compare_references
    			-- Ensure that future search operations will use `='
    			-- rather than equal for comparing references.
    			-- (from CONTAINER)
    		require -- from CONTAINER
    			changeable_comparison_criterion: changeable_comparison_criterion
    		ensure -- from CONTAINER
    			reference_comparison: not object_comparison

    	cursor_to_object (object: ANY; cursor: DB_RESULT)
    			-- Effectively load `object' attributes with
    			-- `cursor' fields.
    		require
    			cursor_exists: cursor /= Void
    			object_exists: object /= Void

    	disable_pre_ecma_mapping
    			-- Set is_pre_ecma_mapping_disabled to True.
    			-- (from INTERNAL_HELPER)
    		ensure -- from INTERNAL_HELPER
    			is_pre_ecma_mapping_disabled_set: is_pre_ecma_mapping_disabled

    	enable_pre_ecma_mapping
    			-- Set is_pre_ecma_mapping_disabled to False.
    			-- (from INTERNAL_HELPER)
    		ensure -- from INTERNAL_HELPER
    			is_pre_ecma_mapping_disabled_set: not is_pre_ecma_mapping_disabled

    	set_ht (table: HASH_TABLE [ANY, STRING_8])
    			-- Obtain bind variables table.
    			-- Set ht with `table'.
    		require else
    			table_exists: table /= Void
    		ensure then
    			ht = table

    	set_immediate
    			-- Set queries to be executed with a
    			-- `EXECUTE IMMEDIATE' SQL  statement.
    			-- (from DB_EXEC_USE)
    		ensure -- from DB_EXEC_USE
    			execution_status: immediate_execution

    	set_map_name (n: ANY; key: STRING_8)
    			-- Store item `n' with key `key'.
    			-- `n' can be `Void'.
    			-- (from STRING_HDL)
    		require -- from STRING_HDL
    			ht_not_void: ht /= Void
    			key_exists: key /= Void
    			not_key_in_table: not is_mapped (key)
    		ensure -- from STRING_HDL
    			ht.count = old ht.count + 1

    	set_trace
    			-- Trace queries sent to database server.
    			-- (from DB_EXEC_USE)
    		ensure -- from DB_EXEC_USE
    			trace_status: is_tracing

    	unset_immediate
    			-- Set queries to be executed with a
    			-- `PREPARE' followed by a `EXECUTE' SQL statement.
    			-- (from DB_EXEC_USE)
    		ensure -- from DB_EXEC_USE
    			execution_status: not immediate_execution

    	unset_map_name (key: STRING_8)
    			-- Remove item associated with key `key'.
    			-- (from STRING_HDL)
    		require -- from STRING_HDL
    			ht_not_void: ht /= Void
    			key_exists: key /= Void
    			item_exists: is_mapped (key)
    		ensure -- from STRING_HDL
    			ht.count = old ht.count - 1

    	unset_trace
    			-- Do not trace queries sent to database server.
    			-- (from DB_EXEC_USE)
    		ensure -- from DB_EXEC_USE
    			trace_status: not is_tracing

    feature -- Element change

    	append (s: STRING_8)
    			-- Append a copy of `s' at end.
    			-- (from STRING_8)
    		require -- from STRING_8
    			argument_not_void: s /= Void
    		ensure -- from STRING_8
    			new_count: count = old count + old s.count
    			appended: elks_checking implies is_equal (old twin + old s.twin)

    	append_boolean (b: BOOLEAN)
    			-- Append the string representation of `b' at end.
    			-- (from STRING_8)

    	append_character (c: CHARACTER_8)
    			-- Append `c' at end.
    			-- Was declared in STRING_8 as synonym of extend.
    			-- (from STRING_8)
    		ensure then -- from STRING_8
    			item_inserted: item (count) = c
    			new_count: count = old count + 1
    			stable_before: elks_checking implies substring (1, count - 1).is_equal (old twin)

    	append_code (c: like code)
    			-- Append `c' at end.
    			-- (from STRING_GENERAL)
    		require -- from STRING_GENERAL
    			valid_code: valid_code (c)
    		ensure then -- from STRING_GENERAL
    			item_inserted: code (count) = c
    			new_count: count = old count + 1
    			stable_before: elks_checking implies substring (1, count - 1).is_equal (old twin)

    	append_double (d: REAL_64)
    			-- Append the string representation of `d' at end.
    			-- (from STRING_8)

    	append_integer (i: INTEGER_32)
    			-- Append the string representation of `i' at end.
    			-- (from STRING_8)

    	append_real (r: REAL_32)
    			-- Append the string representation of `r' at end.
    			-- (from STRING_8)

    	append_string (s: STRING_8)
    			-- Append a copy of `s', if not void, at end.
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			appended: s /= Void implies (elks_checking implies is_equal (old twin + old s.twin))

    	append_string_general (s: STRING_GENERAL)
    			-- Append a copy of `s' at end.
    			-- (from STRING_8)
    		require -- from STRING_GENERAL
    			argument_not_void: s /= Void
    			compatible_strings: is_string_8 implies s.is_valid_as_string_8
    		ensure -- from STRING_GENERAL
    			new_count: count = old count + old s.count
    			appended: elks_checking implies to_string_32.is_equal (old to_string_32.twin + old s.to_string_32.twin)

    	copy (other: like Current)
    			-- Reinitialize by copying the characters of `other'.
    			-- (This is also used by twin.)
    			-- (from STRING_8)
    		require -- from ANY
    			other_not_void: other /= Void
    			type_identity: same_type (other)
    		ensure -- from ANY
    			is_equal: is_equal (other)
    		ensure then -- from STRING_8
    			new_result_count: count = other.count

    	extend (c: CHARACTER_8)
    			-- Append `c' at end.
    			-- Was declared in STRING_8 as synonym of append_character.
    			-- (from STRING_8)
    		require -- from COLLECTION
    			extendible: extendible
    		ensure -- from COLLECTION
    			item_inserted: is_inserted (c)
    		ensure then -- from BAG
    			one_more_occurrence: occurrences (c) = old (occurrences (c)) + 1
    		ensure then -- from STRING_8
    			item_inserted: item (count) = c
    			new_count: count = old count + 1
    			stable_before: elks_checking implies substring (1, count - 1).is_equal (old twin)

    	fill (other: CONTAINER [CHARACTER_8])
    			-- Fill with as many items of `other' as possible.
    			-- The representations of `other' and current structure
    			-- need not be the same.
    			-- (from COLLECTION)
    		require -- from COLLECTION
    			other_not_void: other /= Void
    			extendible: extendible

    	fill_blank
    			-- Fill with capacity blank characters.
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			filled: full
    			same_size: (count = capacity) and (capacity = old capacity)

    	fill_character (c: CHARACTER_8)
    			-- Fill with capacity characters all equal to `c'.
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			filled: full
    			same_size: (count = capacity) and (capacity = old capacity)

    	fill_with (c: CHARACTER_8)
    			-- Replace every character with `c'.
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			same_count: (count = old count) and (capacity >= old capacity)
    			filled: elks_checking implies occurrences (c) = count

    	insert_character (c: CHARACTER_8; i: INTEGER_32)
    			-- Insert `c' at index `i', shifting characters between ranks
    			-- `i' and count rightwards.
    			-- (from STRING_8)
    		require -- from STRING_8
    			valid_insertion_index: 1 <= i and i <= count + 1
    		ensure -- from STRING_8
    			one_more_character: count = old count + 1
    			inserted: item (i) = c
    			stable_before_i: elks_checking implies substring (1, i - 1).is_equal (old substring (1, i - 1))
    			stable_after_i: elks_checking implies substring (i + 1, count).is_equal (old substring (i, count))

    	insert_string (s: STRING_8; i: INTEGER_32)
    			-- Insert `s' at index `i', shifting characters between ranks
    			-- `i' and count rightwards.
    			-- (from STRING_8)
    		require -- from STRING_8
    			string_exists: s /= Void
    			valid_insertion_index: 1 <= i and i <= count + 1
    		ensure -- from STRING_8
    			inserted: elks_checking implies (is_equal (old substring (1, i - 1) + old (s.twin) + old substring (i, count)))

    	keep_head (n: INTEGER_32)
    			-- Remove all characters except for the first `n';
    			-- do nothing if `n' >= count.
    			-- (from STRING_8)
    		require -- from STRING_8
    			non_negative_argument: n >= 0
    		ensure -- from STRING_8
    			new_count: count = n.min (old count)
    			kept: elks_checking implies is_equal (old substring (1, n.min (count)))

    	keep_tail (n: INTEGER_32)
    			-- Remove all characters except for the last `n';
    			-- do nothing if `n' >= count.
    			-- (from STRING_8)
    		require -- from STRING_8
    			non_negative_argument: n >= 0
    		ensure -- from STRING_8
    			new_count: count = n.min (old count)
    			kept: elks_checking implies is_equal (old substring (count - n.min (count) + 1, count))

    	left_adjust
    			-- Remove leading whitespace.
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			valid_count: count <= old count
    			new_count: not is_empty implies not item (1).is_space
    			kept: elks_checking implies is_equal ((old twin).substring (old count - count + 1, old count))

    	precede (c: CHARACTER_8)
    			-- Add `c' at front.
    			-- Was declared in STRING_8 as synonym of prepend_character.
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			new_count: count = old count + 1

    	prepend (s: STRING_8)
    			-- Prepend a copy of `s' at front.
    			-- (from STRING_8)
    		require -- from STRING_8
    			argument_not_void: s /= Void
    		ensure -- from STRING_8
    			new_count: count = old (count + s.count)
    			inserted: elks_checking implies string.is_equal (old (s.twin) + old substring (1, count))

    	prepend_boolean (b: BOOLEAN)
    			-- Prepend the string representation of `b' at front.
    			-- (from STRING_8)

    	prepend_character (c: CHARACTER_8)
    			-- Add `c' at front.
    			-- Was declared in STRING_8 as synonym of precede.
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			new_count: count = old count + 1

    	prepend_double (d: REAL_64)
    			-- Prepend the string representation of `d' at front.
    			-- (from STRING_8)

    	prepend_integer (i: INTEGER_32)
    			-- Prepend the string representation of `i' at front.
    			-- (from STRING_8)

    	prepend_real (r: REAL_32)
    			-- Prepend the string representation of `r' at front.
    			-- (from STRING_8)

    	prepend_string (s: STRING_8)
    			-- Prepend a copy of `s', if not void, at front.
    			-- (from STRING_8)

    	put (c: CHARACTER_8; i: INTEGER_32)
    			-- Replace character at position `i' by `c'.
    			-- (from STRING_8)
    		require -- from TABLE
    			valid_key: valid_index (i)
    		require -- from TO_SPECIAL
    			valid_index: valid_index (i)
    		ensure then -- from INDEXABLE
    			insertion_done: item (i) = c
    		ensure -- from TO_SPECIAL
    			inserted: item (i) = c
    		ensure then -- from STRING_8
    			stable_count: count = old count
    			stable_before_i: elks_checking implies substring (1, i - 1).is_equal (old substring (1, i - 1))
    			stable_after_i: elks_checking implies substring (i + 1, count).is_equal (old substring (i + 1, count))

    	put_code (v: NATURAL_32; i: INTEGER_32)
    			-- Replace character at position `i' by character of code `v'.
    			-- (from STRING_8)
    		require -- from STRING_GENERAL
    			valid_code: valid_code (v)
    			valid_index: valid_index (i)
    		ensure -- from STRING_GENERAL
    			inserted: code (i) = v
    			stable_count: count = old count
    			stable_before_i: elks_checking implies substring (1, i - 1).is_equal (old substring (1, i - 1))
    			stable_after_i: elks_checking implies substring (i + 1, count).is_equal (old substring (i + 1, count))

    	replace_blank
    			-- Replace all current characters with blanks.
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			same_size: (count = old count) and (capacity >= old capacity)
    			all_blank: elks_checking implies occurrences (' ') = count

    	replace_substring (s: STRING_8; start_index, end_index: INTEGER_32)
    			-- Replace characters from `start_index' to `end_index' with `s'.
    			-- (from STRING_8)
    		require -- from STRING_8
    			string_not_void: s /= Void
    			valid_start_index: 1 <= start_index
    			valid_end_index: end_index <= count
    			meaningfull_interval: start_index <= end_index + 1
    		ensure -- from STRING_8
    			new_count: count = old count + old s.count - end_index + start_index - 1
    			replaced: elks_checking implies (is_equal (old (substring (1, start_index - 1) + s + substring (end_index + 1, count))))

    	replace_substring_all (original, new: like Current)
    			-- Replace every occurrence of `original' with `new'.
    			-- (from STRING_8)
    		require -- from STRING_8
    			original_exists: original /= Void
    			new_exists: new /= Void
    			original_not_empty: not original.is_empty

    	right_adjust
    			-- Remove trailing whitespace.
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			valid_count: count <= old count
    			new_count: (count /= 0) implies ((item (count) /= ' ') and (item (count) /= '%T') and (item (count) /= '%R') and (item (count) /= '%N'))
    			kept: elks_checking implies is_equal ((old twin).substring (1, count))

    	set (t: like Current; n1, n2: INTEGER_32)
    			-- Set current string to substring of `t' from indices `n1'
    			-- to `n2', or to empty string if no such substring.
    			-- (from STRING_8)
    		require -- from STRING_8
    			argument_not_void: t /= Void
    		ensure -- from STRING_8
    			is_substring: is_equal (t.substring (n1, n2))

    	set_boolean_field (i: INTEGER_32; object: ANY; value: BOOLEAN)
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			boolean_field: field_type (i, object) = boolean_type

    	set_character_field (i: INTEGER_32; object: ANY; value: CHARACTER_8)
    			-- Set character value of `i'-th field of `object' to `value'
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			character_field: field_type (i, object) = character_type

    	set_double_field (i: INTEGER_32; object: ANY; value: REAL_64)
    			-- Was declared in INTERNAL as synonym of set_real_64_field.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			real_64_field: field_type (i, object) = real_64_type

    	set_integer_16_field (i: INTEGER_32; object: ANY; value: INTEGER_16)
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			integer_16_field: field_type (i, object) = integer_16_type

    	set_integer_32_field (i: INTEGER_32; object: ANY; value: INTEGER_32)
    			-- Was declared in INTERNAL as synonym of set_integer_field.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			integer_32_field: field_type (i, object) = integer_32_type

    	set_integer_64_field (i: INTEGER_32; object: ANY; value: INTEGER_64)
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			integer_64_field: field_type (i, object) = integer_64_type

    	set_integer_8_field (i: INTEGER_32; object: ANY; value: INTEGER_8)
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			integer_8_field: field_type (i, object) = integer_8_type

    	set_integer_field (i: INTEGER_32; object: ANY; value: INTEGER_32)
    			-- Was declared in INTERNAL as synonym of set_integer_32_field.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			integer_32_field: field_type (i, object) = integer_32_type

    	set_natural_16_field (i: INTEGER_32; object: ANY; value: NATURAL_16)
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			natural_16_field: field_type (i, object) = natural_16_type

    	set_natural_32_field (i: INTEGER_32; object: ANY; value: NATURAL_32)
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			natural_32_field: field_type (i, object) = natural_32_type

    	set_natural_64_field (i: INTEGER_32; object: ANY; value: NATURAL_64)
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			natural_64_field: field_type (i, object) = natural_64_type

    	set_natural_8_field (i: INTEGER_32; object: ANY; value: NATURAL_8)
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			natural_8_field: field_type (i, object) = natural_8_type

    	set_pointer_field (i: INTEGER_32; object: ANY; value: POINTER)
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			pointer_field: field_type (i, object) = pointer_type

    	set_real_32_field (i: INTEGER_32; object: ANY; value: REAL_32)
    			-- Was declared in INTERNAL as synonym of set_real_field.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			real_32_field: field_type (i, object) = real_32_type

    	set_real_64_field (i: INTEGER_32; object: ANY; value: REAL_64)
    			-- Was declared in INTERNAL as synonym of set_double_field.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			real_64_field: field_type (i, object) = real_64_type

    	set_real_field (i: INTEGER_32; object: ANY; value: REAL_32)
    			-- Was declared in INTERNAL as synonym of set_real_32_field.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			real_32_field: field_type (i, object) = real_32_type

    	set_reference_field (i: INTEGER_32; object: ANY; value: ANY)
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			index_large_enough: i >= 1
    			index_small_enough: i <= field_count (object)
    			reference_field: field_type (i, object) = reference_type
    			value_conforms_to_field_static_type: value /= Void implies type_conforms_to (dynamic_type (value), field_static_type_of_type (i, dynamic_type (object)))

    	share (other: STRING_8)
    			-- Make current string share the text of `other'.
    			-- Subsequent changes to the characters of current string
    			-- will also affect `other', and conversely.
    			-- (from STRING_8)
    		require -- from STRING_8
    			argument_not_void: other /= Void
    		ensure -- from STRING_8
    			shared_count: other.count = count
    			shared_area: other.area = area

    	subcopy (other: like Current; start_pos, end_pos, index_pos: INTEGER_32)
    			-- Copy characters of `other' within bounds `start_pos' and
    			-- `end_pos' to current string starting at index `index_pos'.
    			-- (from STRING_8)
    		require -- from STRING_8
    			other_not_void: other /= Void
    			valid_start_pos: other.valid_index (start_pos)
    			valid_end_pos: other.valid_index (end_pos)
    			valid_bounds: (start_pos <= end_pos) or (start_pos = end_pos + 1)
    			valid_index_pos: valid_index (index_pos)
    			enough_space: (count - index_pos) >= (end_pos - start_pos)
    		ensure -- from STRING_8
    			same_count: count = old count
    			copied: elks_checking implies (is_equal (old substring (1, index_pos - 1) + old other.substring (start_pos, end_pos) + old substring (index_pos + (end_pos - start_pos + 1), count)))

    	infix "+" (s: STRING_8): like Current
    			-- Append a copy of 's' at the end of a copy of Current,
    			-- Then return the Result.
    			-- (from STRING_8)
    		require -- from STRING_8
    			argument_not_void: s /= Void
    		ensure -- from STRING_8
    			result_exists: Result /= Void
    			new_count: Result.count = count + s.count
    			initial: elks_checking implies Result.substring (1, count).is_equal (Current)
    			final: elks_checking implies Result.substring (count + 1, count + s.count).same_string (s)

    feature -- Removal

    	prune (c: CHARACTER_8)
    			-- Remove first occurrence of `c', if any.
    			-- (from STRING_8)
    		require -- from COLLECTION
    			prunable: prunable
    		require else -- from STRING_8
    			True

    	prune_all (c: CHARACTER_8)
    			-- Remove all occurrences of `c'.
    			-- (from STRING_8)
    		require -- from COLLECTION
    			prunable: prunable
    		require else -- from STRING_8
    			True
    		ensure -- from COLLECTION
    			no_more_occurrences: not has (c)
    		ensure then -- from STRING_8
    			changed_count: count = (old count) - (old occurrences (c))

    	prune_all_leading (c: CHARACTER_8)
    			-- Remove all leading occurrences of `c'.
    			-- (from STRING_8)

    	prune_all_trailing (c: CHARACTER_8)
    			-- Remove all trailing occurrences of `c'.
    			-- (from STRING_8)

    	remove (i: INTEGER_32)
    			-- Remove `i'-th character.
    			-- (from STRING_8)
    		require -- from STRING_GENERAL
    			valid_index: valid_index (i)
    		ensure -- from STRING_GENERAL
    			new_count: count = old count - 1
    			removed: elks_checking implies to_string_32.is_equal (old substring (1, i - 1).to_string_32 + old substring (i + 1, count).to_string_32)

    	remove_head (n: INTEGER_32)
    			-- Remove first `n' characters;
    			-- if `n' > count, remove all.
    			-- (from STRING_8)
    		require -- from STRING_8
    			n_non_negative: n >= 0
    		ensure -- from STRING_8
    			removed: elks_checking implies is_equal (old substring (n.min (count) + 1, count))

    	remove_substring (start_index, end_index: INTEGER_32)
    			-- Remove all characters from `start_index'
    			-- to `end_index' inclusive.
    			-- (from STRING_8)
    		require -- from STRING_8
    			valid_start_index: 1 <= start_index
    			valid_end_index: end_index <= count
    			meaningful_interval: start_index <= end_index + 1
    		ensure -- from STRING_8
    			removed: elks_checking implies is_equal (old substring (1, start_index - 1) + old substring (end_index + 1, count))

    	remove_tail (n: INTEGER_32)
    			-- Remove last `n' characters;
    			-- if `n' > count, remove all.
    			-- (from STRING_8)
    		require -- from STRING_8
    			n_non_negative: n >= 0
    		ensure -- from STRING_8
    			removed: elks_checking implies is_equal (old substring (1, count - n.min (count)))

    	wipe_out
    			-- Remove all characters.
    			-- (from STRING_8)
    		require -- from COLLECTION
    			prunable: prunable
    		ensure -- from COLLECTION
    			wiped_out: is_empty
    		ensure then -- from STRING_8
    			is_empty: count = 0
    			empty_capacity: capacity = 0

    feature -- Resizing

    	adapt_size
    			-- Adapt the size to accommodate count characters.
    			-- (from STRING_8)

    	automatic_grow
    			-- Change the capacity to accommodate at least
    			-- Growth_percentage more items.
    			-- (from RESIZABLE)
    		ensure -- from RESIZABLE
    			increased_capacity: capacity >= old capacity + old capacity * growth_percentage // 100

    	grow (newsize: INTEGER_32)
    			-- Ensure that the capacity is at least `newsize'.
    			-- (from STRING_8)
    		ensure -- from RESIZABLE
    			new_capacity: capacity >= newsize

    	resize (newsize: INTEGER_32)
    			-- Rearrange string so that it can accommodate
    			-- at least `newsize' characters.
    			-- Do not lose any previously entered character.
    			-- (from STRING_8)
    		require -- from STRING_GENERAL
    			new_size_non_negative: newsize >= 0

    feature -- Conversion

    	as_lower: like Current
    			-- New object with all letters in lower case.
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			length: Result.count = count
    			anchor: count > 0 implies Result.item (1) = item (1).as_lower
    			recurse: count > 1 implies Result.substring (2, count).is_equal (substring (2, count).as_lower)

    	as_string_32: STRING_32
    			-- Convert `Current' as a STRING_32.
    			-- Was declared in STRING_GENERAL as synonym of to_string_32.
    			-- (from STRING_GENERAL)
    		ensure -- from STRING_GENERAL
    			as_string_32_not_void: Result /= Void
    			identity: (is_string_32 and Result = Current) or (not is_string_32 and Result /= Current)

    	as_string_8: STRING_8
    			-- Convert `Current' as a STRING_8. If a code of `Current' is
    			-- node a valid code for a STRING_8 it is replaced with the null
    			-- character.
    			-- (from STRING_GENERAL)
    		ensure -- from STRING_GENERAL
    			as_string_8_not_void: Result /= Void
    			identity: (is_string_8 and Result = Current) or (not is_string_8 and Result /= Current)

    	as_upper: like Current
    			-- New object with all letters in upper case
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			length: Result.count = count
    			anchor: count > 0 implies Result.item (1) = item (1).as_upper
    			recurse: count > 1 implies Result.substring (2, count).is_equal (substring (2, count).as_upper)

    	boolean_format (object: BOOLEAN): STRING_8
    			-- Converted string of `object' according to the database format
    			-- (from DB_FORMAT)

    	center_justify
    			-- Center justify Current using count as width.
    			-- (from STRING_8)

    	character_justify (pivot: CHARACTER_8; position: INTEGER_32)
    			-- Justify a string based on a `pivot'
    			-- and the `position' it needs to be in
    			-- the final string.
    			-- This will grow the string if necessary
    			-- to get the pivot in the correct place.
    			-- (from STRING_8)
    		require -- from STRING_8
    			valid_position: position <= capacity
    			positive_position: position >= 1
    			pivot_not_space: pivot /= ' '
    			not_empty: not is_empty

    	charconv (i: INTEGER_32): CHARACTER_8
    			-- Character associated with integer value `i'
    			-- (from BASIC_ROUTINES)

    	date_format (object: DATE_TIME): STRING_8
    			-- Converted string of `object' according to the database format.
    			-- (from DB_FORMAT)
    		require -- from DB_FORMAT
    			argument_not_void: object /= Void

    	left_justify
    			-- Left justify Current using count as witdth.
    			-- (from STRING_8)

    	linear_representation: LINEAR [CHARACTER_8]
    			-- Representation as a linear structure
    			-- (from STRING_8)

    	mirror
    			-- Reverse the order of characters.
    			-- "Hello world" -> "dlrow olleH".
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			same_count: count = old count

    	mirrored: like Current
    			-- Mirror image of string;
    			-- Result for "Hello world" is "dlrow olleH".
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			same_count: Result.count = count

    	right_justify
    			-- Right justify Current using count as width.
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			same_count: count = old count

    	split (a_separator: CHARACTER_8): LIST [STRING_8]
    			-- Split on `a_separator'.
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			Result /= Void

    	string_format (object: STRING_8): STRING_8
    			-- Converted string of `object' according to the database format.
    			-- (from DB_FORMAT)
    		require -- from DB_FORMAT
    			argument_not_void: object /= Void

    	to_boolean: BOOLEAN
    			-- Boolean value;
    			-- "True" yields `True', "False" yields `False'
    			-- (case-insensitive)
    			-- (from STRING_8)
    		require -- from STRING_8
    			is_boolean: string_is_boolean
    		ensure -- from STRING_8
    			to_boolean: (Result = true_constant.same_string (as_lower)) or (not Result = false_constant.same_string (as_lower))

    	frozen to_c: ANY
    			-- A reference to a C form of current string.
    			-- Useful only for interfacing with C software.
    			-- (from STRING_8)
    		require -- from STRING_8
    			not_is_dotnet: not {PLATFORM}.is_dotnet

    	frozen to_cil: SYSTEM_STRING
    			-- Create an instance of SYSTEM_STRING using characters
    			-- of Current between indices `1' and count.
    			-- (from STRING_GENERAL)
    		require -- from STRING_GENERAL
    			is_dotnet: {PLATFORM}.is_dotnet
    		ensure -- from STRING_GENERAL
    			to_cil_not_void: Result /= Void

    	to_double: REAL_64
    			-- "Double" value;
    			-- for example, when applied to "123.0", will yield 123.0 (double)
    			-- (from STRING_8)
    		require -- from STRING_8
    			represents_a_double: string_is_double

    	to_integer: INTEGER_32
    			-- 32-bit integer value
    			-- Was declared in STRING_8 as synonym of to_integer_32.
    			-- (from STRING_8)
    		require -- from STRING_8
    			is_integer: is_integer_32

    	to_integer_16: INTEGER_16
    			-- 16-bit integer value
    			-- (from STRING_8)
    		require -- from STRING_8
    			is_integer_16: is_integer_16

    	to_integer_32: INTEGER_32
    			-- 32-bit integer value
    			-- Was declared in STRING_8 as synonym of to_integer.
    			-- (from STRING_8)
    		require -- from STRING_8
    			is_integer: is_integer_32

    	to_integer_64: INTEGER_64
    			-- 64-bit integer value
    			-- (from STRING_8)
    		require -- from STRING_8
    			is_integer_64: is_integer_64

    	to_integer_8: INTEGER_8
    			-- 8-bit integer value
    			-- (from STRING_8)
    		require -- from STRING_8
    			is_integer_8: is_integer_8

    	to_lower
    			-- Convert to lower case.
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			length_end_content: elks_checking implies is_equal (old as_lower)

    	to_natural: NATURAL_32
    			-- 32-bit natural value
    			-- Was declared in STRING_8 as synonym of to_natural_32.
    			-- (from STRING_8)
    		require -- from STRING_8
    			is_natural: is_natural

    	to_natural_16: NATURAL_16
    			-- 16-bit natural value
    			-- (from STRING_8)
    		require -- from STRING_8
    			is_natural_16: is_natural_16

    	to_natural_32: NATURAL_32
    			-- 32-bit natural value
    			-- Was declared in STRING_8 as synonym of to_natural.
    			-- (from STRING_8)
    		require -- from STRING_8
    			is_natural: is_natural

    	to_natural_64: NATURAL_64
    			-- 64-bit natural value
    			-- (from STRING_8)
    		require -- from STRING_8
    			is_natural_64: is_natural_64

    	to_natural_8: NATURAL_8
    			-- 8-bit natural value
    			-- (from STRING_8)
    		require -- from STRING_8
    			is_natural_8: is_natural_8

    	to_real: REAL_32
    			-- Real value;
    			-- for example, when applied to "123.0", will yield 123.0
    			-- (from STRING_8)
    		require -- from STRING_8
    			represents_a_real: string_is_real

    	to_string_32: STRING_32
    			-- Convert `Current' as a STRING_32.
    			-- Was declared in STRING_GENERAL as synonym of as_string_32.
    			-- (from STRING_GENERAL)
    		ensure -- from STRING_GENERAL
    			as_string_32_not_void: Result /= Void
    			identity: (is_string_32 and Result = Current) or (not is_string_32 and Result /= Current)

    	to_string_8: STRING_8
    			-- Convert `Current' as a STRING_8.
    			-- (from STRING_GENERAL)
    		require -- from STRING_GENERAL
    			is_valid_as_string_8: is_valid_as_string_8
    		ensure -- from STRING_GENERAL
    			as_string_8_not_void: Result /= Void
    			identity: (is_string_8 and Result = Current) or (not is_string_8 and Result /= Current)

    	to_upper
    			-- Convert to upper case.
    			-- (from STRING_8)
    		ensure -- from STRING_8
    			length_end_content: elks_checking implies is_equal (old as_upper)

    feature -- Duplication

    	frozen deep_copy (other: like Current)
    			-- Effect equivalent to that of:
    			--		copy (`other' . deep_twin)
    			-- (from ANY)
    		require -- from ANY
    			other_not_void: other /= Void
    		ensure -- from ANY
    			deep_equal: deep_equal (Current, other)

    	frozen deep_twin: like Current
    			-- New object structure recursively duplicated from Current.
    			-- (from ANY)
    		ensure -- from ANY
    			deep_equal: deep_equal (Current, Result)

    	multiply (n: INTEGER_32)
    			-- Duplicate a string within itself
    			-- ("hello").multiply(3) => "hellohellohello"
    			-- (from STRING_8)
    		require -- from STRING_8
    			meaningful_multiplier: n >= 1

    	frozen standard_copy (other: like Current)
    			-- Copy every field of `other' onto corresponding field
    			-- of current object.
    			-- (from ANY)
    		require -- from ANY
    			other_not_void: other /= Void
    			type_identity: same_type (other)
    		ensure -- from ANY
    			is_standard_equal: standard_is_equal (other)

    	frozen standard_twin: like Current
    			-- New object field-by-field identical to `other'.
    			-- Always uses default copying semantics.
    			-- (from ANY)
    		ensure -- from ANY
    			standard_twin_not_void: Result /= Void
    			equal: standard_equal (Result, Current)

    	substring (start_index, end_index: INTEGER_32): like Current
    			-- Copy of substring containing all characters at indices
    			-- between `start_index' and `end_index'
    			-- (from STRING_8)
    		require -- from  STRING_GENERAL
    			True
    		ensure -- from STRING_GENERAL
    			substring_not_void: Result /= Void
    			substring_count: Result.count = end_index - start_index + 1 or Result.count = 0
    			first_item: Result.count > 0 implies Result.code (1) = code (start_index)
    			recurse: Result.count > 0 implies Result.substring (2, Result.count).is_equal (substring (start_index + 1, end_index))
    		ensure then -- from STRING_8
    			first_item: Result.count > 0 implies Result.item (1) = item (start_index)
    			recurse: Result.count > 0 implies Result.substring (2, Result.count).is_equal (substring (start_index + 1, end_index))

    	frozen twin: like Current
    			-- New object equal to `Current'
    			-- twin calls copy; to change copying/twining semantics, redefine copy.
    			-- (from ANY)
    		ensure -- from ANY
    			twin_not_void: Result /= Void
    			is_equal: Result.is_equal (Current)

    feature -- Basic operations

    	abs (n: INTEGER_32): INTEGER_32
    			-- Absolute value of `n'
    			-- (from BASIC_ROUTINES)
    		ensure -- from BASIC_ROUTINES
    			non_negative_result: Result >= 0

    	bottom_int_div (n1, n2: INTEGER_32): INTEGER_32
    			-- Greatest lower bound of the integer division of `n1' by `n2'
    			-- (from BASIC_ROUTINES)

    	deep_traversal (object: ANY)
    			-- Perform a deep recursive traversal on
    			-- the transitive closure of the object network
    			-- reachable from root `object'.
    			-- (from EXT_INTERNAL)
    		require -- from EXT_INTERNAL
    			root_object_non_void: object /= Void

    	frozen default: like Current
    			-- Default value of object's type
    			-- (from ANY)

    	frozen default_pointer: POINTER
    			-- Default value of type `POINTER'
    			-- (Avoid the need to write `p'.default for
    			-- some `p' of type `POINTER'.)
    			-- (from ANY)

    	default_rescue
    			-- Process exception for routines with no Rescue clause.
    			-- (Default: do nothing.)
    			-- (from ANY)

    	frozen do_nothing
    			-- Execute a null action.
    			-- (from ANY)

    	field_clean (i: INTEGER_32; object: ANY): BOOLEAN
    			-- Clean `i'-th field of `object'.
    			-- (from EXT_INTERNAL)
    		require -- from EXT_INTERNAL
    			object_not_void: object /= Void

    	field_copy (i: INTEGER_32; object, value: ANY): BOOLEAN
    			-- Copy `value' in `i'-th field of `object'.
    			-- (from EXT_INTERNAL)
    		require -- from EXT_INTERNAL
    			object_not_void: object /= Void
    			value_not_void: value /= Void

    	get_complex_value (obj: ANY; str: STRING_8)
    			-- Retrieve string value of reference object `obj' and put in `str'.
    			-- (from SQL_SCAN)
    		require -- from SQL_SCAN
    			object_exists: obj /= Void
    			str_exists: str /= Void

    	get_value (obj: ANY; str: STRING_8)
    			-- Retrieve string value of `obj' and put in `str'.
    			-- (from SQL_SCAN)
    		require -- from SQL_SCAN
    			str_exists: str /= Void

    	modify (s: STRING_8)
    			-- Do nothing.

    	next
    			-- Move to next row matching execute clause.
    		require else
    			connected: is_connected

    	object_finish_action (object: ANY)
    			-- Do nothing.
    			-- (To be redefined in heir.)
    			-- (from EXT_INTERNAL)

    	object_init_action (object: ANY)
    			-- Do nothing.
    			-- (To be redefined in heir.)
    			-- (from EXT_INTERNAL)

    	parse (s: STRING_8): STRING_8
    			-- Parse string `s' by replacing each pattern ":<name>"
    			-- with the Eiffel object description whose name
    			-- also matches "<name>".
    			-- (from SQL_SCAN)

    	query (s: STRING_8)
    			-- Query database server using SQL `statement'.
    		require
    			argument_exists: s /= Void
    			connected: is_connected
    			prepare_execute: not immediate_execution
    			descriptor_is_available: db_spec.descriptor_is_available

    	reference_object_action (i: INTEGER_32; object: ANY)
    			-- Do nothing.
    			-- (To be redefined in heir.)
    			-- (from EXT_INTERNAL)

    	replace
    			-- Replace all occurrences of :key by `ht.item (":key")'
    			-- (from SQL_SCAN)

    	rsign (r: REAL_32): INTEGER_32
    			-- Sign of `r':
    			-- -1 if `r' < 0
    			--  0 if `r' = 0
    			-- +1 if `r' > 0
    			-- (from BASIC_ROUTINES)
    		ensure -- from BASIC_ROUTINES
    			correct_negative: (r < 0) = (Result = -1)
    			correct_zero: (r = 0) = (Result = 0)
    			correct_positive: (r > 0) = (Result = 1)

    	sign (n: INTEGER_32): INTEGER_32
    			-- Sign of `n':
    			-- -1 if `n' < 0
    			--  0 if `n' = 0
    			-- +1 if `n' > 0
    			-- (from BASIC_ROUTINES)
    		ensure -- from BASIC_ROUTINES
    			correct_negative: (n < 0) = (Result = -1)
    			correct_zero: (n = 0) = (Result = 0)
    			correct_positive: (n > 0) = (Result = 1)

    	simple_object_action (type, i: INTEGER_32; object: ANY)
    			-- Do nothing.
    			-- (To be redefined in heir.)
    			-- (from EXT_INTERNAL)

    	store_action (object: ANY)
    			-- Do nothing.
    			-- (To be redefined in heir.)
    			-- (from EXT_INTERNAL)

    	switch_mark (obj: ANY)
    			-- Unmark `obj' if marked or mark it if unmarked.
    			-- (from EXT_INTERNAL)
    		require -- from EXT_INTERNAL
    			object_not_void: obj /= Void

    	terminate
    			-- Release cursor descriptor used with last query.
    		require else
    			connected: is_connected
    			is_ok: is_ok
    		ensure
    			descriptor_is_available: descriptor_available

    	traversal (object: ANY)
    			-- Traverse the entire object structure starting with root `obj'.
    			-- An object in the Eiffel run-time system includes the following:
    			--    a) Reference objects instance of a class type
    			--    b) Special reference objects allocated to refer to a
    			--              variable size object like STRING and ARRAY
    			--    c) Reference objects created for a generic type instantiated
    			--                      as an expanded type or BITS n
    			-- LIMITATION: Current version excludes objects in the Eiffel
    			-- run-time system where expanded objects are encapsulated within
    			-- other objects
    			-- (from EXT_INTERNAL)
    		require -- from EXT_INTERNAL
    			object_not_void: object /= Void

    	unmark_structure (obj: ANY)
    			-- Unmark structure of objects.
    			-- (from EXT_INTERNAL)
    		require -- from EXT_INTERNAL
    			object_not_void: obj /= Void

    	up_int_div (n1, n2: INTEGER_32): INTEGER_32
    			-- Least upper bound of the integer division
    			-- of `n1' by `n2'
    			-- (from BASIC_ROUTINES)

    feature -- Conformance

    	is_instance_of (object: ANY; type_id: INTEGER_32): BOOLEAN
    			-- Is `object' an instance of type `type_id'?
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: object /= Void
    			type_id_nonnegative: type_id >= 0

    	type_conforms_to (type1, type2: INTEGER_32): BOOLEAN
    			-- Does `type1' conform to `type2'?
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			type1_nonnegative: type1 >= 0
    			type2_nonnegative: type2 >= 0

    feature -- Correction

    	mismatch_information: MISMATCH_INFORMATION
    			-- Original attribute values of mismatched object
    			-- (from MISMATCH_CORRECTOR)

    feature -- Creation

    	dynamic_type_from_string (class_type: STRING_8): INTEGER_32
    			-- Dynamic type corresponding to `class_type'.
    			-- If no dynamic type available, returns -1.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			class_type_not_void: class_type /= Void
    			class_type_not_empty: not class_type.is_empty
    			is_valid_type_string: is_valid_type_string (class_type)
    		ensure -- from INTERNAL
    			dynamic_type_from_string_valid: Result = -1 or Result = none_type or Result >= 0

    	new_instance_of (type_id: INTEGER_32): ANY
    			-- New instance of dynamic `type_id'.
    			-- Note: returned object is not initialized and may
    			-- hence violate its invariant.
    			-- `type_id' cannot represent a SPECIAL type, use
    			-- new_special_any_instance instead.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			type_id_nonnegative: type_id >= 0
    			not_special_type: not is_special_type (type_id)
    		ensure -- from INTERNAL
    			not_special_type: not is_special (Result)
    			dynamic_type_set: dynamic_type (Result) = type_id

    	new_special_any_instance (type_id, count: INTEGER_32): SPECIAL [ANY]
    			-- New instance of dynamic `type_id' that represents
    			-- a SPECIAL with count element. To create a SPECIAL of
    			-- basic type, use `SPECIAL'.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			count_valid: count >= 0
    			type_id_nonnegative: type_id >= 0
    			special_type: is_special_any_type (type_id)
    		ensure -- from INTERNAL
    			special_type: is_special (Result)
    			dynamic_type_set: dynamic_type (Result) = type_id
    			count_set: Result.count = count

    feature -- Marking

    	lock_marking
    			-- Get a lock on mark and unmark routine so that 2 threads cannot mark and
    			-- unmark at the same time.
    			-- (from INTERNAL)

    	mark (obj: ANY)
    			-- Mark object `obj'.
    			-- To be thread safe, make sure to call this feature when you
    			-- have the marking lock that you acquire using lock_marking.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: obj /= Void
    			object_not_marked: not is_marked (obj)
    		ensure -- from INTERNAL
    			is_marked: is_marked (obj)

    	unlock_marking
    			-- Release a lock on mark and unmark, so that another thread can
    			-- use mark and unmark.
    			-- (from INTERNAL)

    	unmark (obj: ANY)
    			-- Unmark object `obj'.
    			-- To be thread safe, make sure to call this feature when you
    			-- have the marking lock that you acquire using lock_marking.
    			-- (from INTERNAL)
    		require -- from INTERNAL
    			object_not_void: obj /= Void
    			object_marked: is_marked (obj)
    		ensure -- from INTERNAL
    			is_not_marked: not is_marked (obj)

    feature -- Output

    	io: STD_FILES
    			-- Handle to standard file setup
    			-- (from ANY)

    	out: STRING_8
    			-- Printable representation
    			-- (from STRING_8)
    		require -- from  ANY
    			True
    		ensure then -- from STRING_8
    			out_not_void: Result /= Void
    			same_items: same_type ("") implies Result.same_string (Current)

    	print (some: ANY)
    			-- Write terse external representation of `some'
    			-- on standard output.
    			-- (from ANY)

    	frozen tagged_out: STRING_8
    			-- New string containing terse printable representation
    			-- of current object
    			-- Was declared in ANY as synonym of out.
    			-- (from ANY)

    feature -- Platform

    	operating_environment: OPERATING_ENVIRONMENT
    			-- Objects available from the operating system
    			-- (from ANY)

    feature -- Version

    	compiler_version: INTEGER_32
    			-- (from INTERNAL)

    invariant
    		-- from ANY
    	reflexive_equality: standard_is_equal (Current)
    	reflexive_conformance: conforms_to (Current)

    		-- from STRING_8
    	extendible: extendible
    	compare_character: not object_comparison
    	index_set_has_same_count: index_set.count = count
    	area_not_void: area /= Void

    		-- from COMPARABLE
    	irreflexive_comparison: not (Current < Current)

    		-- from INDEXABLE
    	index_set_not_void: index_set /= Void

    		-- from RESIZABLE
    	increase_by_at_least_one: minimal_increase >= 1

    		-- from BOUNDED
    	valid_count: count <= capacity
    	full_definition: full = (count = capacity)

    		-- from FINITE
    	empty_definition: is_empty = (count = 0)
    	non_negative_count: count >= 0

    indexing
    	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 -- class DATABASE_SELECTION