summaryrefslogtreecommitdiffstats
path: root/generic/tclUtf.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclUtf.c')
-rw-r--r--generic/tclUtf.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/generic/tclUtf.c b/generic/tclUtf.c
index ca4a166..9888772 100644
--- a/generic/tclUtf.c
+++ b/generic/tclUtf.c
@@ -2283,36 +2283,6 @@ Tcl_UniCharIsUpper(
/*
*----------------------------------------------------------------------
*
- * Tcl_UniCharIsUnicode --
- *
- * Test if a character is a Unicode character.
- *
- * Results:
- * Returns non-zero if character belongs to the Unicode set.
- *
- * Excluded are:
- * 1) All characters > U+10FFFF
- * 2) Surrogates U+D800 - U+DFFF
- * 3) Last 2 characters of each plane, so U+??FFFE and U+??FFFF
- * 4) The characters in the range U+FDD0 - U+FDEF
- *
- * Side effects:
- * None.
- *
- *----------------------------------------------------------------------
- */
-
-int
-Tcl_UniCharIsUnicode(
- int ch) /* Unicode character to test. */
-{
- return ((unsigned int)ch <= 0x10FFFF) && ((ch & 0xFFF800) != 0xD800)
- && ((ch & 0xFFFE) != 0xFFFE) && ((unsigned int)(ch - 0xFDD0) >= 32);
-}
-
-/*
- *----------------------------------------------------------------------
- *
* Tcl_UniCharIsWordChar --
*
* Test if a character is alphanumeric or a connector punctuation mark.