Implement 'char-upcase', 'char-downcase', and 'char-titlecase' in Scheme

Issue #39 new
Katie Burke created an issue

These should each return the uppercase/lowercase/titlecase/foldcase equivalent of char.
http://www.scheme.com/tspl4/objects.html#./objects:s206

(char-upcase #\g)

Traceback (most recent call last):
File "stdin", line 1, col 2
RunTimeError: unbound variable 'char-upcase'

(char-downcase #\g)

Traceback (most recent call last):
File "stdin", line 1, col 2
RunTimeError: unbound variable 'char-downcase'

 (char-titlecase #\g)

Traceback (most recent call last):
File "stdin", line 1, col 2
RunTimeError: unbound variable 'char-titlecase'

Comments (4)

  1. Katie Burke reporter

    The scheme website also mentions char-foldcase, but it wasn't recognized in petite chez scheme either, so I wasn't sure if we wanted to implement it in Calico.

  2. Log in to comment