summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2013-09-30 03:00:06 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2013-09-30 03:00:06 (GMT)
commit11fdcc3fedcd680e93a93d28bf862d388ada3f9d (patch)
tree3137d2b83c6acf8dbe087cfe4337fd40a986670a /generic/tclCompile.c
parent77befed765bd876b11882607e8bdf4eb976df127 (diff)
downloadtcl-11fdcc3fedcd680e93a93d28bf862d388ada3f9d.zip
tcl-11fdcc3fedcd680e93a93d28bf862d388ada3f9d.tar.gz
tcl-11fdcc3fedcd680e93a93d28bf862d388ada3f9d.tar.bz2
First attempt at [string trim] compilation.
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index d15ef3a..cdedbda 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -545,6 +545,17 @@ InstructionDesc const tclInstructionTable[] = {
/* Drops an element from the auxiliary stack, popping stack elements
* until the matching stack depth is reached. */
+ {"strtrimLeft", 1, -1, 0, {OPERAND_NONE}},
+ /* [string trimleft] core: removes the characters (designated by the
+ * value at the top of the stack) from the left of the string and
+ * pushes the resulting string.
+ * Stack: ... string charset => ... trimmedString */
+ {"strtrimRight", 1, -1, 0, {OPERAND_NONE}},
+ /* [string trimright] core: removes the characters (designated by the
+ * value at the top of the stack) from the right of the string and
+ * pushes the resulting string.
+ * Stack: ... string charset => ... trimmedString */
+
{NULL, 0, 0, 0, {OPERAND_NONE}}
};