Difference between revisions of "Le langage Tcl"
From Base de connaissances eggdrops & TCL
(→Informations sur l'environnement système) |
|||
(19 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | [[Catégorie:Tcl]] | + | [[Catégorie:Langage Tcl]] |
+ | [[Catégorie:TCL]] | ||
+ | [[Catégorie:TCLDEV]] | ||
A lire avant tout: les [[11 règles]] du Tcl | A lire avant tout: les [[11 règles]] du Tcl | ||
{{Translation}} | {{Translation}} | ||
− | + | =Variables= | |
[[set]] [[array]] [[unset]] | [[set]] [[array]] [[unset]] | ||
− | + | =Calculs numériques= | |
− | [[expr | + | [[expr]] |
− | + | =Listes= | |
− | [[list]] [[llength]] [[lindex]] [[lrange]] [[linsert]] [[lreplace]] [[lappend]] [[lsearch]] [[concat]] [[split]] [[join]] [[lsort]] [[lrepeat]] [[lset]] | + | [[list]] [[llength]] [[lindex]] [[lrange]] [[linsert]] [[lreplace]] [[lappend]] [[lsearch]] [[concat]] [[split]] [[join]] [[lsort]] {{new}}[[lrepeat]] [[lset]] {{new}}[[dict]] {{new}}[[lreverse]] |
− | + | ||
+ | =Chaines de caractères= | ||
[[string]] [[append]] [[encoding]] | [[string]] [[append]] [[encoding]] | ||
+ | =Procédures= | ||
+ | [[proc]] [[return]] [[global]] [[upvar]] [[uplevel]] | ||
+ | =Gestion des erreurs= | ||
+ | [[return]] [[error]] [[catch]] | ||
− | + | =Programmation= | |
− | + | [[source]] [[rename]] [[namespace]] [[variable]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[source]] [[rename]] [[namespace]] [[variable | ||
− | + | =Contrôles= | |
− | [[if]] [[switch]] [[for]] [[ | + | [[if]] [[switch]] [[for]] [[incr]] [[while]] [[foreach]] [[break]] [[continue]] |
− | + | =Entrées-Sorties= | |
[[open]] [[exec]] [[puts]] [[flush]] [[gets]] [[read]] [[eof]] [[close]] [[socket]] [[seek]] [[tell]] [[fconfigure]] [[fblocked]] [[fcopy]] | [[open]] [[exec]] [[puts]] [[flush]] [[gets]] [[read]] [[eof]] [[close]] [[socket]] [[seek]] [[tell]] [[fconfigure]] [[fblocked]] [[fcopy]] | ||
− | + | =Fichiers= | |
− | + | [[cd]] [[pwd]] [[glob]] [[file]] | |
− | [[cd]] [[pwd]] [[glob]] [[file | + | =Exécution asynchrone= |
− | |||
− | |||
[[after]] [[update]] [[vwait]] [[fileevent]] [[bgerror]] [[trace]] | [[after]] [[update]] [[vwait]] [[fileevent]] [[bgerror]] [[trace]] | ||
− | + | =Gestion du temps= | |
[[clock]] [[time]] | [[clock]] [[time]] | ||
− | + | =Sous-interpréteurs= | |
[[interp]] [[Safe Base]] [[eval]] [[subst]] | [[interp]] [[Safe Base]] [[eval]] [[subst]] | ||
− | + | =Expressions régulières= | |
[[regexp]] [[regsub]] [[re_syntax]] | [[regexp]] [[regsub]] [[re_syntax]] | ||
− | + | =Format et conversions= | |
[[format]] [[scan]] [[binary]] | [[format]] [[scan]] [[binary]] | ||
− | + | =Chargement de code binaire= | |
− | [[load]] [[unload | + | [[load]] [[unload]] |
− | + | =Informations sur l'environnement système= | |
− | + | [[$env]] [[info hostname]] [[pid]] [[$tcl_rcFileName]] | |
− | |||
− | [[$env]] [[info hostname]] [[pid | ||
− | + | =Informations sur le programme= | |
− | [[info nameofexecutable]] [[$argv0]] [[ | + | [[info nameofexecutable]] [[$argv0]] [[$tcl_interactive]] |
+ | =Informations sur la version de Tcl= | ||
+ | [[$tcl_version]] [[$tcl_patchLevel]] | ||
− | + | =Contrôle du déverminage= | |
− | |||
− | |||
− | |||
[[$tcl_traceExec]] [[$tcl_traceCompile]] [[memory]] [[trace]] [[tcltest]] | [[$tcl_traceExec]] [[$tcl_traceCompile]] [[memory]] [[trace]] [[tcltest]] | ||
− | + | =Recherche de mots= | |
− | |||
[[tcl_endOfWord]] [[tcl_startOfNextWord]] [[tcl_startOfPreviousWord]] [[tcl_wordBreakAfter]] [[tcl_wordBreakBefore]] | [[tcl_endOfWord]] [[tcl_startOfNextWord]] [[tcl_startOfPreviousWord]] [[tcl_wordBreakAfter]] [[tcl_wordBreakBefore]] | ||
− | + | =Définition d'un mot= | |
− | |||
[[$tcl_wordchars]] [[$tcl_nonwordchars]] | [[$tcl_wordchars]] [[$tcl_nonwordchars]] | ||
− | + | =Divers= | |
− | |||
[[info]] [[exit]] [[http]] | [[info]] [[exit]] [[http]] |
Latest revision as of 22:14, 25 October 2020
A lire avant tout: les 11 règles du Tcl
Contents
- 1 Variables
- 2 Calculs numériques
- 3 Listes
- 4 Chaines de caractères
- 5 Procédures
- 6 Gestion des erreurs
- 7 Programmation
- 8 Contrôles
- 9 Entrées-Sorties
- 10 Fichiers
- 11 Exécution asynchrone
- 12 Gestion du temps
- 13 Sous-interpréteurs
- 14 Expressions régulières
- 15 Format et conversions
- 16 Chargement de code binaire
- 17 Informations sur l'environnement système
- 18 Informations sur le programme
- 19 Informations sur la version de Tcl
- 20 Contrôle du déverminage
- 21 Recherche de mots
- 22 Définition d'un mot
- 23 Divers
Variables
Calculs numériques
Listes
list llength lindex lrange linsert lreplace lappend lsearch concat split join lsort lrepeat lset
dict
lreverse
Chaines de caractères
Procédures
proc return global upvar uplevel
Gestion des erreurs
Programmation
source rename namespace variable
Contrôles
if switch for incr while foreach break continue
Entrées-Sorties
open exec puts flush gets read eof close socket seek tell fconfigure fblocked fcopy
Fichiers
Exécution asynchrone
after update vwait fileevent bgerror trace
Gestion du temps
Sous-interpréteurs
Expressions régulières
Format et conversions
Chargement de code binaire
Informations sur l'environnement système
$env info hostname pid $tcl_rcFileName
Informations sur le programme
info nameofexecutable $argv0 $tcl_interactive
Informations sur la version de Tcl
Contrôle du déverminage
$tcl_traceExec $tcl_traceCompile memory trace tcltest
Recherche de mots
tcl_endOfWord tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore
Définition d'un mot
$tcl_wordchars $tcl_nonwordchars