#67 New Int and Str methods

brian Fri 19 May 2006

I added a bunch of new methods for char testing and conversion:

Int
{
  Bool isSpace()
  Bool isAlpha
  Bool isAlphaNum()
  Bool isUpper()
  Bool isLower()
  Int upper()
  Int lower()
  Bool isDigit(Int radix := 10)
  Int toDigit(Int radix := 10)
  Int fromDigit(Int radix := 10)
}

Str
{
  Bool contains(Str s)
  Void each(|Int ch, Int index| c)
  Void eachr(|Int ch, Int index| c)
  Str lower()
  Str upper()
}

Login or Signup to reply.