Tcl_UniCharIsAlpha(3)

πŸ“¦
version 9.0.3 Β· 2 versions
, in alpine 3.23, alpine 3.24, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

✨ 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