tcl.lang.cmd
Class StringCmd
java.lang.Object
tcl.lang.cmd.StringCmd
- All Implemented Interfaces:
- Command
public class StringCmd
- extends Object
- implements Command
This class implements the built-in "string" command in Tcl.
Method Summary |
void |
cmdProc(Interp interp,
TclObject[] objv)
----------------------------------------------------------------------
Tcl_StringObjCmd -> StringCmd.cmdProc
This procedure is invoked to process the "string" Tcl command. |
static int |
Utf8Count(char c)
|
static int |
Utf8Count(String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringCmd
public StringCmd()
cmdProc
public void cmdProc(Interp interp,
TclObject[] objv)
throws TclException
- ----------------------------------------------------------------------
Tcl_StringObjCmd -> StringCmd.cmdProc
This procedure is invoked to process the "string" Tcl command. See the
user documentation for details on what it does.
Results: None.
Side effects: See the user documentation.
----------------------------------------------------------------------
- Specified by:
cmdProc
in interface Command
- Parameters:
interp
- The interpreter for setting the results and which contains the
contextobjv
- the argument list for the command; objv[0[ is the command name
itself
- Throws:
TclException
- on any errors
Utf8Count
public static final int Utf8Count(String s)
Utf8Count
public static final int Utf8Count(char c)
Copyright © 2015. All rights reserved.