slang-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] isalpha in SLang


=?UTF-8?Q?J=C3=B6rg?= Sommer <joerg@xxxxxxxxxxxx> wrote:
>why only isdigit() is available in SLang? How can I test for an
>alphabetical character?

I will add the isxxx character class functions to the next release.
Meanwhile, you can try this hack:

  define isalpha (x)
  {
     return "" == strtrans (char(x), "\\a", "");
  }

--John



[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]