Re: Whitespace ...

Bernd Schoeller <[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.general
Message-ID <[email protected]>
On Thu, Apr 20, 2006 at 08:58:27AM +1200, Berend de Boer wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Bernd Schoeller <[email protected]> writes:
> 
> > As I did find out that 'CHARACTER.is_space' is not available is
> > SmartEiffel, what is the current, portable way (in terms of the OS as
> > well as in terms of the compiler) to test if a certain character is a
> > whitespace character?
> 
> I suppose there isn't agreement what is a white space.

Well, Unicode says something about it (there is a property
'White_Space').

Check for example
  http://www.unicode.org/versions/Unicode4.0.0/ch15.pdf

I think with the introduction of Unicode into the different Eiffel
compilers it becomes important to have a general understanding what
whitespace is. At least I currently do not like hardcoded characters
lying around in the code.

Try the following on the GOBO library

find . -name '*.e' | xargs grep '%R' | grep '%T'

and you know what I mean. ;-)

Bernd



To Post a message, send it to:   [email protected]
To Unsubscribe, send a blank message to: [email protected] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/gobo-eiffel/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.