Tcl_Backslash(3tcl)
β¨ Tcl_Backslash β it's giving "parse a backslash sequence" β¨
okay bestie, this is the Tcl_Backslash page from the Tcl Library Procedures manual, and we're gonna get you fluent in it, no cap π
πΈ SYNOPSIS πΈ
#include <tcl.h>
char
Tcl_Backslash(src, countPtr)
π ARGUMENTS π
const char *src(in) β a pointer to a string that starts with a backslash. like, the backslash has to be first, that's the whole vibe.int *countPtr(out) β ifcountPtris notNULL, then*countPtrgets filled in with the number of characters in the backslash sequence, including the backslash character itself. so yes, the backslash counts. it's part of the squad. π«Ά
π DESCRIPTION π
β οΈ okay first things first, because this matters: the use ofTcl_Backslashis deprecated in favor ofTcl_UtfBackslash. she's an icon but she's retired, bestie. use the newer one for new stuff. π
This is a utility procedure, and the whole reason it exists is backwards compatibility with non-internationalized Tcl extensions. it's basically the older sister holding the door open for legacy code.
What she does: she parses a backslash sequence and returns the low byte of the Unicode character corresponding to that sequence. that's the return value, that's what you get. π¦
And as a lil side quest, Tcl_Backslash modifies *countPtr so it contains the number of characters in the backslash sequence.
Now, which backslash sequences are actually valid? Go check the Tcl manual entry for that, because that's where the full tea is. And the good news: all of the sequences described in the Tcl manual entry are supported by Tcl_Backslash. every single one. periodt. β¨
π₯ SEE ALSO π₯
π KEYWORDS π
backslashparse
and that's the whole page, bestie, you ate it up π
this was the Tcl 8.1 era of the Tcl_Backslash(3tcl) page β sending you love from the group chat, mwah ππ
π¦ where this page comes from
- debian bookworm: tcl8.6-doc 8.6.13+dfsg-2
- debian trixie: tcl8.6-doc 8.6.16+dfsg-1
- ubuntu jammy: tcl8.6-doc 8.6.12+dfsg-1build1
- ubuntu noble: tcl8.6-doc 8.6.14+dfsg-1build1
- ubuntu questing: tcl8.6-doc 8.6.17+dfsg-1
- ubuntu resolute: tcl8.6-doc 8.6.17+dfsg-1build1
- ubuntu stonking: tcl8.6-doc 8.6.18+dfsg-1
- Copyright (c) 1989-1993 The Regents of the University of California
- Copyright (c) 1994-1996 Sun Microsystems, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms