Tcl/Tk 8.5 programming cookbook /
Annotation
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Pub.,
2011.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: The Tcl Shell; Introduction; The Tcl shell; Writing to the Tcl console; Mathematical expressions; Tcl expr operands; Mathematical functions; Computing mathematical expressions; Referencing files in Tcl; Variables; Command line arguments; Chapter 2: Using the Building Blocks Control Constructs; Introduction; Controlling flow with the if statement; Looping with for; Looping with foreach; Looping with while; Continuing a procedure; Breaking out of a procedure; Nested looping.
- Chapter 3: Error HandlingIntroduction; Using the catch command; Using the eval command; Using the error command; Error handling procedure; Chapter 4: Handling String Expressions; Introduction; Appending to a string; Formatting a string; Matching a regular expression within; a string; Performing character substitution; on a string; Parsing a string using conversion specifiers; Determining the length of a string; Comparing strings; Comparing a string of characters; Locating the first instance of a character; Locating the index of a character; Determining the class of a string.
- Locating the last instance of a stringDetermining the size of a string; Replacing values within a string; Locating a pattern within a string; Returning a range of characters; from a string; Creating a string of repeated characters; Replacing ranges of characters; contained within a string; Creating a reverse string; Converting a string to lowercase; Converting a string to title; Converting a string to uppercase; Trimming a string; Trimming leading whitespace; Trimming trailing whitespace; Locating the word end; Locating the word start; Performing variable substitution.
- Chapter 5: Expanding String Functionality Using ListsIntroduction; Creating a list; Joining two lists; Joining list elements; Appending list elements; Assigning list elements to variables; Retrieving an element from a list; Inserting elements into a list; Determining the number of elements; Getting a list element; Repeating elements; Replacing elements; Reversing elements; Searching a list; Editing a list; Sorting a list; Splitting a string into a list; Chapter 6: The Tcl Dictionary; Introduction; Creating a dictionary; Appending to a dictionary; Determining if a key exists.
- Filtering a dictionarySearching a dictionary; Getting a record; Incrementing a value; Getting the dictionary structure; Getting a list of keys; Appending to an existing record; Merging two dictionaries; Creating a blank dictionary structure; Updating variables from a dictionary; Determining the size of a dictionary; Getting all records; Assigning values; Chapter 7: File Operations; Introduction; Opening a file; Configuring a file; Opening a command pipeline; Writing a file; Reading a file; Closing a file; File handling; Chapter 8: Tk GUI Programming with Tcl/Tk; Introduction.