On 9 May 99, at 16:02, Frank Heckenbach wrote:
p.s. think "Trim" should trim both spaces and tab chrs ( now only spaces) low priority wish list
What does the standard say about this? (`Trim' is a predefined function of the standard, so we have to care about the standard here.)
Section 6.7.6.7 (String functions) in ISO 10206 (Extended Pascal) says for "Trim":
...the function shall yield the value of substr(sv,1,p-1), where p is the least value in the closed interval 1..n such that each component of sv[p..n] is the char-type value space.
So "Trim" only trims spaces.
Alternatively (if the standard wants only spaces), we could also make a different routine for spaces and tabs...
A different function would be the proper implementation.
-- Dave Bryan