Character class

View: New views
2 Messages — Rating Filter:   Alert me  

Character class

by Michael Thaler-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hello,

I am trying to write a scientific calculator for GNUstep. The calculator should use a parser to parse formulars. For the parser I need a character class that has methods like IsDigit, IsLetter, IsWhitespace. I briefly looked at the gnustep-base documentation and couldn't find any. Is there a character class or do I have to write it myself?

Thanks for tips,

Michael


_______________________________________________
Help-gnustep mailing list
Help-gnustep@...
http://lists.gnu.org/mailman/listinfo/help-gnustep

Re: Character class

by David Ayers-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Samstag, den 16.08.2008, 09:26 +0200 schrieb Michael Thaler:
> I am trying to write a scientific calculator for GNUstep. The
> calculator should use a parser to parse formulars. For the parser I
> need a character class that has methods like IsDigit, IsLetter,
> IsWhitespace. I briefly looked at the gnustep-base documentation and
> couldn't find any. Is there a character class or do I have to write it
> myself?

There is no class for single characters.  There is a unichar type and I
believe what you are looking for is:

http://www.gnustep.org/resources/documentation/Developer/Base/Reference/index.html
[http://tinyurl.com/5wm8kv]

http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSCharacterSet_Class/Reference/Reference.html
[http://tinyurl.com/6754gg]

which provide -characterIsMember: for special character sets.

Cheers,
David




_______________________________________________
Help-gnustep mailing list
Help-gnustep@...
http://lists.gnu.org/mailman/listinfo/help-gnustep