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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.