A position in some source file. In the most common case, the source file is an Eiffel source
file, but, POSITION objects are also used in -cecil file or in the ACE file as well.
Because POSITION objects are very numerous (there are a _lot_ of POSITION objects used and
POSITION objects are small objects). For this reason, POSITION is an expanded class.
Note: do not add new attributes in this class which must fit on 32bits. Also keep in mind that
it is an expanded class !
In order to save memory (there are a lot of objects like Current), the id of the class, the
line and the column are saved in this 32 BIT sequence.
Two mangling are used, and the
column may be dropped (not memorized, see set). The two manglings are:
---------------------------------------------------------------
| id (11) | line (13) | col (7) |0|
---------------------------------------------------------------
| id (15) | line (16) |1|
---------------------------------------------------------------
A value that is equal to Current if it is between the limits set by
a_min and a_max.
Otherwise it's a_min if Current is smaller or a_max if Current
is greater
It's a shortcut for Current.min(a_max).max(a_min) also known as
"clamp" in the widespread C library Glib
Append in str the Eiffel coding of the character (Table in chapter 25 of ETL, page 423).%%%%%%%%
When the % letter notation exists, it is returned in priority: '%N' gives "%N", '%T'
gives "%T", etc.
When % letter notation does not exists (not in the ETL table), numbered coding
used ("%/1/", "%/2/" etc).