Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tcl_backslash(3tcl) [opensolaris man page]

Tcl_Backslash(3TCL)					      Tcl Library Procedures					       Tcl_Backslash(3TCL)

__________________________________________________________________________________________________________________________________________________

NAME
Tcl_Backslash - parse a backslash sequence SYNOPSIS
#include <tcl.h> char Tcl_Backslash(src, countPtr) ARGUMENTS
char *src (in) Pointer to a string starting with a backslash. int *countPtr (out) If countPtr isn't NULL, *countPtr gets filled in with number of characters in the backslash sequence, includ- ing the backslash character. _________________________________________________________________ DESCRIPTION
The use of Tcl_Backslash is deprecated in favor of Tcl_UtfBackslash. | This is a utility procedure provided for backwards compatibility with non-internationalized Tcl extensions. It parses a backslash sequence | and returns the low byte of the Unicode character corresponding to the sequence. Tcl_Backslash modifies *countPtr to contain the number of characters in the backslash sequence. See the Tcl manual entry for information on the valid backslash sequences. All of the sequences described in the Tcl manual entry are sup- ported by Tcl_Backslash. SEE ALSO
| Tcl(1T), Tcl_UtfBackslash(3TCL) KEYWORDS
backslash, parse ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWTcl | +--------------------+-----------------+ |Interface Stability | Uncommitted | +--------------------+-----------------+ NOTES
Source for Tcl is available on http://opensolaris.org. Tcl 8.1 Tcl_Backslash(3TCL)

Check Out this Related Man Page

Tcl_SubstObj(3TCL)					      Tcl Library Procedures						Tcl_SubstObj(3TCL)

__________________________________________________________________________________________________________________________________________________

NAME
Tcl_SubstObj - perform substitutions on Tcl objects SYNOPSIS
#include <tcl.h> Tcl_Obj * Tcl_SubstObj(interp, objPtr, flags) ARGUMENTS
Tcl_Interp *interp (in) Interpreter in which to execute Tcl scripts and lookup variables. If an error occurs, the inter- preter's result is modified to hold an error message. Tcl_Obj *objPtr (in) A Tcl object containing the string to perform substitutions on. int flags (in) ORed combination of flag bits that specify which substitutions to perform. The flags TCL_SUBST_COM- MANDS, TCL_SUBST_VARIABLES and TCL_SUBST_BACKSLASHES are currently supported, and TCL_SUBST_ALL is pro- vided as a convenience for the common case where all substitutions are desired. _________________________________________________________________ DESCRIPTION
The Tcl_SubstObj function is used to perform substitutions on strings in the fashion of the subst command. It gets the value of the string contained in objPtr and scans it, copying characters and performing the chosen substitutions as it goes to an output object which is returned as the result of the function. In the event of an error occurring during the execution of a command or variable substitution, the function returns NULL and an error message is left in interp's result. Three kinds of substitutions are supported. When the TCL_SUBST_BACKSLASHES bit is set in flags, sequences that look like backslash substi- tutions for Tcl commands are replaced by their corresponding character. When the TCL_SUBST_VARIABLES bit is set in flags, sequences that look like variable substitutions for Tcl commands are replaced by the con- tents of the named variable. When th TCL_SUBST_COMMANDS bit is set in flags, sequences that look like command substitutions for Tcl commands are replaced by the result of evaluating that script. Where an uncaught continue exception occurs during the evaluation of a command substitution, an empty string is substituted for the command. Where an uncaught break exception occurs during the evaluation of a command substitution, the result of the whole substitution on objPtr will be truncated at the point immediately before the start of the command substitution, and no characters will be added to the result or substitutions performed after that point. SEE ALSO
subst(1T) KEYWORDS
backslash substitution, command substitution, variable substitution ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWTcl | +--------------------+-----------------+ |Interface Stability | Uncommitted | +--------------------+-----------------+ NOTES
Source for Tcl is available on http://opensolaris.org. Tcl 8.4 Tcl_SubstObj(3TCL)
Man Page