diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2013-10-29 20:07:56 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2013-10-29 20:07:56 (GMT) |
commit | 3b3f0179aee2dce77bfef12308c53429523675bc (patch) | |
tree | 828b7eec987390366fbae9386dc035934b7918a3 /generic/tclCompile.c | |
parent | 03ed211908f92573618b54bcd46c162367b1d13d (diff) | |
download | tcl-3b3f0179aee2dce77bfef12308c53429523675bc.zip tcl-3b3f0179aee2dce77bfef12308c53429523675bc.tar.gz tcl-3b3f0179aee2dce77bfef12308c53429523675bc.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.
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}} }; |