|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(library (rnrs unicode (6)) |
|
(export char-upcase |
|
char-downcase |
|
char-titlecase |
|
char-foldcase |
|
|
|
char-ci=? |
|
char-ci<? |
|
char-ci>? |
|
char-ci<=? |
|
char-ci>=? |
|
|
|
char-alphabetic? |
|
char-numeric? |
|
char-whitespace? |
|
char-upper-case? |
|
char-lower-case? |
|
char-title-case? |
|
|
|
char-general-category |
|
|
|
string-upcase |
|
string-downcase |
|
string-titlecase |
|
string-foldcase |
|
|
|
string-ci=? |
|
string-ci<? |
|
string-ci>? |
|
string-ci<=? |
|
string-ci>=? |
|
|
|
string-normalize-nfd |
|
string-normalize-nfkd |
|
string-normalize-nfc |
|
string-normalize-nfkc) |
|
(import (only (guile) char-upcase |
|
char-downcase |
|
char-titlecase |
|
|
|
char-ci=? |
|
char-ci<? |
|
char-ci>? |
|
char-ci<=? |
|
char-ci>=? |
|
|
|
char-alphabetic? |
|
char-numeric? |
|
char-whitespace? |
|
char-upper-case? |
|
char-lower-case? |
|
|
|
char-set-contains? |
|
char-set:title-case |
|
|
|
char-general-category |
|
|
|
char-upcase |
|
char-downcase |
|
char-titlecase |
|
|
|
string-upcase |
|
string-downcase |
|
string-titlecase |
|
|
|
string-ci=? |
|
string-ci<? |
|
string-ci>? |
|
string-ci<=? |
|
string-ci>=? |
|
|
|
string-normalize-nfd |
|
string-normalize-nfkd |
|
string-normalize-nfc |
|
string-normalize-nfkc) |
|
(rnrs base (6))) |
|
|
|
(define (char-foldcase char) |
|
(if (or (eqv? char #\460) (eqv? char #\461)) |
|
char (char-downcase (char-upcase char)))) |
|
|
|
(define (char-title-case? char) (char-set-contains? char-set:title-case char)) |
|
|
|
(define (string-foldcase str) (string-downcase (string-upcase str))) |
|
) |
|
|