diff options
author | dkf <dkf@noemail.net> | 2013-10-29 20:07:56 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2013-10-29 20:07:56 (GMT) |
commit | 914722e37f1920010e8ea1048960b595c7a2af6f (patch) | |
tree | 828b7eec987390366fbae9386dc035934b7918a3 /generic/tclCompile.c | |
parent | c93bddc64fcd720f29a7528b44b270d6fb4a9e14 (diff) | |
download | tcl-914722e37f1920010e8ea1048960b595c7a2af6f.zip tcl-914722e37f1920010e8ea1048960b595c7a2af6f.tar.gz tcl-914722e37f1920010e8ea1048960b595c7a2af6f.tar.bz2 |
Now do [string toupper], [string tolower] and [string totitle]. Only handles the no-indices case; that's the only case anyone actually commonly uses.
FossilOrigin-Name: 993ffd19930e40461b2332e7e102df509a18af89
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r-- | generic/tclCompile.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c index 280bf64..48165e6 100644 --- a/generic/tclCompile.c +++ b/generic/tclCompile.c @@ -566,6 +566,19 @@ InstructionDesc const tclInstructionTable[] = { * is number of values to concatenate. * Operation: push concat(stk1 stk2 ... stktop) */ + {"strUpper", 1, 0, 0, {OPERAND_NONE}}, + /* [string toupper] core: converts whole string to upper case using + * the default (extended "C" locale) rules. + * Stack: ... string => ... newString */ + {"strLower", 1, 0, 0, {OPERAND_NONE}}, + /* [string tolower] core: converts whole string to upper case using + * the default (extended "C" locale) rules. + * Stack: ... string => ... newString */ + {"strTitle", 1, 0, 0, {OPERAND_NONE}}, + /* [string totitle] core: converts whole string to upper case using + * the default (extended "C" locale) rules. + * Stack: ... string => ... newString */ + {NULL, 0, 0, 0, {OPERAND_NONE}} }; |