Let's now look at 'left_adjust' and 'right_adjust'. The purpose of these features is to remove leading and trailing spaces. Here are the ELKS95 versions: ...
Roger Browne
egroups@...
Nov 1, 2000 12:27 pm
1681
... [Rest of post sniped, as it is long] Wow what a pace! Let's have a look at this: Regarding whitespace ... My opinion is that the task of defining what...
Arno Wagner
arno.wagner@...
Nov 1, 2000 7:53 pm
1682
... Unfortunately, this approach cannot work for 'left_adjust', because it is a command (i.e. a procedure). But firstly: the "string_not_void" precondition is...
Roger Browne
egroups@...
Nov 1, 2000 8:32 pm
1683
... [...] ... Right, forget this part. ... Right again. I was obviously confused when I wrote the post. ... I should have thought a little longer on this one....
Arno Wagner
arno.wagner@...
Nov 2, 2000 12:18 am
1684
... I don't think that definition of 'whitespaces' is the task of class STRING. Whitespace is a character, so all STRING need is a routine in CHARACTER to...
Alex Shuksto
beleg@...
Nov 3, 2000 3:21 am
1685
This is a hard problem! :) After thinking for a while, I can only get one solution: creating two new functions, 'left_adjusted' and 'right_adjusted', with easy...
Ignacio Calvo
icalvo@...
Nov 3, 2000 5:01 am
1686
Oh sorry, Roger, I didn't read the last of your suggestions, which was precisely what I say in my message... anyway the specification work and ...
Ignacio Calvo
icalvo@...
Nov 3, 2000 5:10 am
1687
... Stangely I also overlooked the last sugesstion. I think it is the best option so far, 'left_adjusted' and 'right_adjusted' have enough merit of their own...
Arno Wagner
arno.wagner@...
Nov 3, 2000 10:33 am
1688
... BTW, the features we are discussing might be useful not only for whitespaces. Instead we could remove the notion of whitespace at all and ask a user to...
Alexander Kogtenkov
kwaxer@...
Nov 3, 2000 12:01 pm
1689
... What is your preferred alternative, and why is it better? Here are two other possibilities. Both are based on the definitions in the standard C library...
Roger Browne
egroups@...
Nov 3, 2000 12:28 pm
1690
... I think this would be a good choice. ... I don't know. If there are control characters (other than those that are an 'isspace' as well) in the STRING,...
Arno Wagner
arno.wagner@...
Nov 3, 2000 1:40 pm
1691
Good afternoon. On Friday, November 03, 2000 11:00 AM, Roger Browne ... <aside> I think this is the first mention of the word 'trim' in this discussion. I've...
Simon Parker
sparker@...
Nov 3, 2000 2:44 pm
1692
... Just to re-iterate, for those who have joined this group recently: the current Eiffel language definition only requires support for 7-bit characters (ASCII...
Roger Browne
egroups@...
Nov 3, 2000 8:07 pm
1693
... I like this approach. May I suggest "is_graphic" and "is_printable"? Also, "is_hexadecimal_digit" is a little long-winded. How about "is_hex_digit"? The...
Jeff Clark
jeff.clark@...
Nov 3, 2000 8:46 pm
1694
... For me the choice is (1), because the task of cleaning user's input depends on ours main goal and deleting such characters as <Ctrl-D> etc by default is a...
Alex Shuksto
beleg@...
Nov 3, 2000 9:47 pm
1695
... And about the names. All is ok (exept is_upper & is_lower may be - I think is_upper_case & is_lower_case will be better choice), but there is to poor names...
Alex Shuksto
beleg@...
Nov 3, 2000 10:06 pm
1696
... I've come across terminology, before, where there was a term for white space characters, space and tab (and sometimes for indent), another term for ...
mike corbeil ordinary...
mcorbeil@...
Nov 3, 2000 11:31 pm
1697
... It's what follows the '_' that seems to be in debate, here, but graph is not much worse than alpha, although there is, in the sense that graph doesn't ...
mike corbeil ordinary...
mcorbeil@...
Nov 4, 2000 3:25 am
1698
... Don't you think that it is a theme for discussion? I cannot say that my names just better because of that, that and may be that. But, I must say agian,...
Alex Shuksto
beleg@...
Nov 4, 2000 7:21 am
1699
... We can take the advantage of the both worlds, Unicode and ASCII. Unicode divides all the characters into 30 general categories. ASCII characters fall into...
Alexander Kogtenkov
kwaxer@...
Nov 4, 2000 9:00 am
1700
... Thank you for bringing this to our attention. I think the Unicode character categories are an excellent candidate for inclusion in CHARACTER. But I'm not...
Roger Browne
egroups@...
Nov 4, 2000 4:40 pm
1701
... Both options seem reasonable for me. The problem with preserving ELKS95 semantics is that current 3 of 4 current implementations allow to remove not only...
Alexander Kogtenkov
kwaxer@...
Nov 4, 2000 7:00 pm
1702
... is_glyph Concise OED: (1) a sculptured character or symbol -- Peter Horan School of Computing and Mathematics peter@......
Peter Horan
peter@...
Nov 5, 2000 10:54 pm
1703
It seems we lack a CHARACTER.is_whitespace feature. ... Regards, Ulrich...
Ulrich Windl
ulrich.windl@...
Nov 6, 2000 7:38 am
1704
... It always reminded me of stone-age. Don't ask why. I think in Y2K we have to support the ISO 8859 charsets at least. Maybe UTF-8. Regards, Ulrich...
Ulrich Windl
ulrich.windl@...
Nov 6, 2000 7:55 am
1705
... And why not explicitely use the charcter classifications Roger proposed in CHARACTER and have left/right_adjust use them? It would be something with a...
Arno Wagner
arno.wagner@...
Nov 6, 2000 10:12 am
1706
... IMHO not supporting unicode is very sensible. Unicode has a lot of serious problems (even if some people want to make you believe something else), not the...
Arno Wagner
arno.wagner@...
Nov 6, 2000 10:30 am
1707
... I hope you are not saying that "Using German Umlauts in Eiffel" is "overdone". BTW: literal strings are 7 bit, but "%/255/" has 8 bits internally. So we...
Ulrich Windl
ulrich.windl@...
Nov 6, 2000 10:56 am
1708
... [[translated summary follows]] ... [[ELKS does not need 8 bits right now. ELKS (Eiffel) does not treat characters >127 in any special way right now]] ...
Ulrich Windl
ulrich.windl@...
Nov 6, 2000 11:22 am
1709
... In my opinion german Umlauts and other language dependant features that require support for more than one character set don't have a place in ELKS at the...