Character>>#isSpecial?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Character>>#isSpecial?

Christoph Thiede

Hi, I'm missing a simple selector.


I would like to check whether a character is a control character like Esc, an arrow or Character insert. Does there currently exist any better solution than testing [aChar asInteger < 32]?


Best,

Christoph


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Carpe Squeak!
jrm
Reply | Threaded
Open this post in threaded view
|

Re: Character>>#isSpecial?

jrm
Check out the class methods in #Character in the category "accessing untypeable characters" and see if that will help you write the method you need.

-jrm

On Fri, Aug 9, 2019 at 4:31 PM Thiede, Christoph <[hidden email]> wrote:

Hi, I'm missing a simple selector.


I would like to check whether a character is a control character like Esc, an arrow or Character insert. Does there currently exist any better solution than testing [aChar asInteger < 32]?


Best,

Christoph

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners