Node: Character Conversions, Previous: Character Construction, Up: Characters



Character Conversions

character object Function

character returns the Character object that object can be coerced to or signals an error. Only Character, Integer, Symbol or String objects can be coerced to a Character object. For example

     character(L('h')) => 'h'
     character(L("h")) => 'h'
     character(L(104)) => 'h'
     character(S(h)) => 'h'
     

charUpcase character Function

charDowncase characterz Function

The given character must be a Character object. If character is a lower case letter charUpcase returns the corresponding upper case letter Character object. If chacacter is an upper case letter charDowncase returns the corresponding lower case letter Chacacter object. Otherwise both just return character.