GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
UNICODE_PARSER_BUFFER
+
Point of view
RECYCLING_POOL
ANY
INTERNALS_HANDLER
TYPED_INTERNALS
RECYCLING_POOL
All features
class UNICODE_PARSER_BUFFER
Summary
top
A UTF-8 aware parser buffer for XML parsing
Direct parents
Insert list:
PLATFORM
,
RECYCLABLE
Overview
top
Creation features
connect_to
(a_url:
URL
, a_encoding:
STRING
)
Exported features
unknown_character
:
INTEGER_32
connect_to
(a_url:
URL
, a_encoding:
STRING
)
disconnect
set_encoding
(a_encoding:
STRING
)
url
:
URL
index
:
INTEGER_32
line
:
INTEGER_32
column
:
INTEGER_32
at_error
:
BOOLEAN
is_connected
:
BOOLEAN
end_of_input
:
BOOLEAN
can_read_character
:
BOOLEAN
next
previous
save_position
:
UNICODE_PARSER_POSITION
restore_position
(a_position:
UNICODE_PARSER_POSITION
)
set_index
(a_index:
INTEGER_32
)
valid_index
(a_index:
INTEGER_32
):
BOOLEAN
character
:
CHARACTER
code
:
INTEGER_32
is_character
:
BOOLEAN
append_substring_in
(string:
UNICODE_STRING
, first:
INTEGER_32
, last:
INTEGER_32
)
recycle
Do whatever needs to be done to free resources or recycle other objects when recycling this one
unknown_character
:
INTEGER_32
is 0x0000fffd
constant attribute
top
connect_to
(a_url:
URL
, a_encoding:
STRING
)
effective procedure
top
require
not
is_connected
disconnect
effective procedure
top
ensure
not
is_connected
set_encoding
(a_encoding:
STRING
)
effective procedure
top
require
a_encoding /= Void
url
:
URL
writable attribute
top
index
:
INTEGER_32
writable attribute
top
line
:
INTEGER_32
writable attribute
top
column
:
INTEGER_32
writable attribute
top
at_error
:
BOOLEAN
writable attribute
top
is_connected
:
BOOLEAN
effective function
top
end_of_input
:
BOOLEAN
effective function
top
require
is_connected
can_read_character
:
BOOLEAN
effective function
top
next
effective procedure
top
require
is_connected
not
end_of_input
can_read_character
not
at_error
previous
effective procedure
top
require
is_connected
index
> 0
ensure
not
end_of_input
save_position
:
UNICODE_PARSER_POSITION
effective function
top
restore_position
(a_position:
UNICODE_PARSER_POSITION
)
effective procedure
top
set_index
(a_index:
INTEGER_32
)
effective procedure
top
require
valid_index
(a_index)
valid_index
(a_index:
INTEGER_32
):
BOOLEAN
effective function
top
character
:
CHARACTER
effective function
top
require
is_connected
is_character
ensure
Result.code =
code
code
:
INTEGER_32
effective function
top
require
is_connected
is_character
:
BOOLEAN
effective function
top
require
is_connected
append_substring_in
(string:
UNICODE_STRING
, first:
INTEGER_32
, last:
INTEGER_32
)
effective procedure
top
require
string /= Void
first <= last
valid_index
(first)
valid_index
(last)
recycle
effective procedure
top
Do whatever needs to be done to free resources or recycle other objects when recycling this one