CSC151.02 2010S Functional Problem Solving : Reference
Primary: [Front Door] [Schedule] - [Academic Honesty] [Instructions]
Current: [Outline] [EBoard] [Reading] [Lab] - [Assignment] [Quiz]
Groupings: [Assignments] [EBoards] [Examples] [Exams] [Handouts] [Labs] [Outlines] [Projects] [Quizzes] [Readings]
References: [A-Z] [By Topic] - [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [CSC151.01 2010S (Weinman)] [CSC151 2009F (Rebelsky)]
Misc: [SamR] [MediaScript] [GIMP]
(char->integer
ch
)
ch
's position in the collating
sequence.
(integer->char
n
)
n
th character in the
collating sequence.
(char-downcase
ch
)
ch
is an upper-case character
(#\A, #\B, ... #\Z, in ASCII; potentially other characters in other
character sets), return the corresponding lower-case
character. Otherwise, return the same character.
(char-upcase
ch
)
ch
is a lower-case character
(#\a, #\b, ... #\z, in ASCII; potentially other characters in other
character sets), return the corresponding upper-case
character (#\A for #\a, #\B for #\b, etc.). Otherwise, return
the same character.
(char?
val
)
val
is a character.
(char-alphabetic?
ch
)
ch
(which must be a
character) is an alphabetic character (in English, #\a, #\b, ... #\z,
#\A, #\B, ...., #\Z).
(char-numeric?
ch
)
ch
(which must be a
character) represents a digit in a number (traditionally,
#\0, #\1, ... #\9, although other systems have different
numeric characters).
(char-whitespace?
ch
)
ch
(which must be a
character) represents a whitespace character, such as a space,
a tab, or a newline.
(char-lower-case?
ch
)
ch
(which must be a
character) represents a lower-case character
(in English, #\a, #\b, ... #\z).
(char-upper-case?
ch
)
ch
(which must be a
character) represents an upper-case character
(in English, #\a, #\b, ... #\z).
(char<?
ch1
ch2
)
ch1
precedes
ch2
in the collating sequence.
Both ch1
and ch2
must be characters.
(char<=?
ch1
ch2
)
ch1
equals
ch2
or if
ch1
precedes
ch2
in the collating sequence.
Both ch1
and ch2
must be characters.
(char=?
ch1
ch2
)
ch1
and
ch2
are the same. Both
ch1
and ch2
must
be characters.
(char>=?
ch1
ch2
)
ch1
and ch2
are equal or if ch1
follows
ch2
in the collating sequence.
Both ch1
and ch2
must be characters.
(char>?
ch1
ch2
)
ch1
follows
ch2
in the collating sequence.
Both ch1
and ch2
must be characters.
(char-ci<?
ch1
ch2
)
ch1
and ch2
are alphabetic characters (letters), determine if
ch1
naturally precedes
ch2
, ignoring case.
If either is not alphabetic, determine if ch1
precedes
ch2
in the collating sequence.
Both ch1
and ch2
must be characters.
(char-ci<=?
ch1
ch2
)
ch1
and ch2
are alphabetic characters (letters), determine if
ch1
naturally precedes or equals
ch2
, ignoring case.
If either is not alphabetic, determine if ch1
equals
ch2
or if ch1
precedes
ch2
in the collating sequence.
Both ch1
and ch2
must be characters.
(char-ci=?
ch1
ch2
)
ch1
and ch2
are alphabetic characters (letters), determine if
ch1
and ch2
represent
the same letter, ignoring case.
If either is not alphabetic, determine if ch1
follows
ch2
in the collating sequence.
Both ch1
and ch2
must be characters.
(char-ci>=?
ch1
ch2
)
ch1
and ch2
are alphabetic characters (letters), determine if
ch1
naturally follows or equals
ch2
, ignoring case. If either is not
alphabetic, determine if ch1
equals
ch2
or if ch1
follows ch2
in the collating sequence.
Both ch1
and ch2
must be characters.
(char-ci>?
ch1
ch2
)
ch1
and ch2
are alphabetic characters (letters), determine if
ch1
naturally follows
ch2
, ignoring case.
If either is not alphabetic, determine if ch1
follows
ch2
in the collating sequence.
Both ch1
and ch2
must be characters.
Primary: [Front Door] [Schedule] - [Academic Honesty] [Instructions]
Current: [Outline] [EBoard] [Reading] [Lab] - [Assignment] [Quiz]
Groupings: [Assignments] [EBoards] [Examples] [Exams] [Handouts] [Labs] [Outlines] [Projects] [Quizzes] [Readings]
References: [A-Z] [By Topic] - [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [CSC151.01 2010S (Weinman)] [CSC151 2009F (Rebelsky)]
Misc: [SamR] [MediaScript] [GIMP]
Copyright (c) 2007-10 Janet Davis, Matthew Kluber, Samuel A. Rebelsky, and Jerod Weinman. (Selected materials copyright by John David Stone and Henry Walker and used by permission.)
This material is based upon work partially supported by the National Science Foundation under Grant No. CCLI-0633090. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
This work is licensed under a Creative Commons
Attribution-NonCommercial 2.5 License. To view a copy of this
license, visit http://creativecommons.org/licenses/by-nc/2.5/
or send a letter to Creative Commons, 543 Howard Street, 5th Floor,
San Francisco, California, 94105, USA.