Tcl_UniCharIsAlpha(3)
β¨ NAME β¨
bestie, welcome to the character classification girlies π this is a whole squad of routines from the Tcl Library Procedures β Tcl_UniCharIsAlnum, Tcl_UniCharIsAlpha, Tcl_UniCharIsControl, Tcl_UniCharIsDigit, Tcl_UniCharIsGraph, Tcl_UniCharIsLower, Tcl_UniCharIsPrint, Tcl_UniCharIsPunct, Tcl_UniCharIsSpace, Tcl_UniCharIsUpper, and Tcl_UniCharIsWordChar β and they're literally just here to classify Tcl_UniChar characters. no drama, just vibes π¦
πΈ SYNOPSIS πΈ
okay so you're gonna need this first, no skipping:
#include <tcl.h>
int
Tcl_UniCharIsAlnum(ch)
int
Tcl_UniCharIsAlpha(ch)
int
Tcl_UniCharIsControl(ch)
int
Tcl_UniCharIsDigit(ch)
int
Tcl_UniCharIsGraph(ch)
int
Tcl_UniCharIsLower(ch)
int
Tcl_UniCharIsPrint(ch)
int
Tcl_UniCharIsPunct(ch)
int
Tcl_UniCharIsSpace(ch)
int
Tcl_UniCharIsUpper(ch)
int
Tcl_UniCharIsWordChar(ch)
π ARGUMENTS π
int ch(in) β the Unicode character getting the vibe check π the one being examined, periodt.
π DESCRIPTION π
so every single one of these routines looks at a Unicode character and hands you back a boolean value. if it comes back non-zero, that means yes bestie, the character does belong to the character class that the routine you called is about π (zero = it's giving "not in this class", iykyk).
and that's the whole thing fr fr β the rest of this page is just me telling you what each character class actually is. no cap. π
π CHARACTER CLASSES π
okay so this is the main character section, let's go one by one π«Ά
Tcl_UniCharIsAlnumβ tests if the character is an alphanumeric Unicode character. letters AND numbers, obsessed β¨Tcl_UniCharIsAlphaβ tests if the character is an alphabetic Unicode character. just letters, iconic πTcl_UniCharIsControlβ tests if the character is a Unicode control character. the sneaky invisible ones πTcl_UniCharIsDigitβ tests if the character is a numeric Unicode character. numbers slay π₯Tcl_UniCharIsGraphβ tests if the character is any Unicode print character except space. so like, printable but no spaces allowed, she's picky πTcl_UniCharIsLowerβ tests if the character is a lowercase Unicode character. soft launch energy π¦Tcl_UniCharIsPrintβ tests if the character is a Unicode print character. printable, full stop πTcl_UniCharIsPunctβ tests if the character is a Unicode punctuation character. commas and friends ate, honestly βTcl_UniCharIsSpaceβ tests if the character is a whitespace Unicode character. the quiet ones πΈTcl_UniCharIsUpperβ tests if the character is an uppercase Unicode character. LOUD. main character energy πTcl_UniCharIsWordCharβ tests if the character is alphanumeric or a connector punctuation mark. that's the word-char combo meal π
reminder bestie: every one of these returns a boolean, and non-zero means "yep, it's in the class". don't overthink it π
π KEYWORDS π
unicode, classification
that's the whole page, bestie!! π«Ά this was Tcl 8.1's take on Tcl_UniCharIsAlpha(3), and honestly she ate π
go forth and classify some Unicode characters, you've got this πβ¨π
π¦ where this page comes from
- alpine 3.23: tcl9-doc 9.0.3-r0 Β· TCL
- alpine 3.24: tcl9-doc 9.0.3-r2 Β· TCL
- fedora 43: tcl-doc 1:9.0.2-1.fc43 Β· TCL AND GPL-3.0-or-later WITH Bison-exception-2.2 AND BSD-3-Clause
- fedora 44: tcl-doc 1:9.0.2-1.fc44 Β· TCL AND GPL-3.0-or-later WITH Bison-exception-2.2 AND BSD-3-Clause
- nixos 26.05: tcl 9.0.3
- nixpkgs unstable: tcl 9.1.0
- Copyright (c) 1997 Sun Microsystems, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms