39. String Utilities

Tcl provides a number of utility functions that make working with strings and hash tables considerably easier and that C programmers can mostly use (with the exception of the encoding framework and the regular expression engine) independently of the rest of the Tcl library. This chapter describes Tcl’s library functions for manipulating strings, including a dynamic string mechanism that allows you to build up arbitrarily long strings; a function for doing simple string matching; a suite of functions for working with Unicode characters and UTF-8 strings; and a function for testing the syntactic completeness of a command.

39.1 Functions Presented in This Chapter

The following string utility functions are described in this ...

Get Tcl and the Tk Toolkit, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.