All Manuals > LispWorks User Guide and Reference Manual > 34 The LISPWORKS Package

NextPrevUpTopContentsIndex

unicode-both-case-p

Function
Summary

Returns a value like cl:both-case-p , but using specified Unicode rules.

Package

lispworks

Signature

unicode-both-case-p char &key style => flag

Arguments

char

A character

style

A keyword

Values

flag

A generalized boolean

Description

The function unicode-both-case-p returns flag as true if char has case according to the Unicode rules specified by style .

The current implementation only supports one style:

:general-category

Use Unicode's "general category" for char .

Notes

The name of unicode-both-case-p is slightly confusing, because it matches the ANSI Common Lisp definition "a character with case" whereas there is no guarantee that both cases actually exist. Note also that there are some "alpha" chars which are not lower or upper case.

See also

unicode-alpha-char-p
unicode-lower-case-p
unicode-upper-case-p


LispWorks User Guide and Reference Manual - 21 Dec 2011

NextPrevUpTopContentsIndex