+
Point of view
All features
class FORMATTER
Summary
A STRING_FORMATTER class using a buffer string as output. Strings and messages can be easily appended with append and put_message. The formatted content can be printed on streams with print_on and appended to other strings with append_on
Direct parents
Inherit list: STRING_FORMATTER
Overview
Creation features
{ANY}
Features
{ANY}
Implementation
{}
{}
{ANY}
  • put_message (message: TRAVERSABLE[E_], arguments: TRAVERSABLE[F_])
clear
effective procedure
{ANY}
Clears the content of Current's buffer.
reset
effective procedure
{ANY}
Clears the content of Current's buffer.
reset_with (a_string: STRING)
effective procedure
{ANY}
Overwrite the content of Current's buffer with a copy of a_string.
out: STRING
effective function
{ANY}
A newly create copy of Current content
append (a_string: ABSTRACT_STRING)
effective procedure
{ANY}
Append a_string to the content of Current
append_new_line
effective procedure
{ANY}
Append a new line to Current
append_on (a_string: STRING)
effective procedure
{ANY}
Append the content of Current to a_string
require
  • a_string /= Void
print_on (a_stream: OUTPUT_STREAM)
effective procedure
{ANY}
Put current content on a_stream
require
  • a_stream.is_connected
ensure
is_empty: BOOLEAN
effective function
{ANY}
Is current empty?
count: INTEGER_32
effective function
{ANY}
Content length
default_create
effective procedure
{ANY}
Default creation method.
It is used when no creation method is specified if allowed. Note it may be renamed.
put (c: CHARACTER)
effective procedure
{ANY}
put_item (item: ABSTRACT_STRING)
effective procedure
{}
buffer: STRING
writable attribute
{}
delimiter: CHARACTER
is '@'
constant attribute
{}
opening_brace: CHARACTER
is '('
constant attribute
{}
closing_brace: CHARACTER
is ')'
constant attribute
{}
is_digit (c: CHARACTER): BOOLEAN
effective function
{}
value (c: CHARACTER): INTEGER_32
effective function
{}
require
  • is_digit(c)
put_message (message: TRAVERSABLE[E_], arguments: TRAVERSABLE[F_])
effective procedure
{ANY}