📄 lower.java
字号:
package jmathlib.toolbox.string;
import jmathlib.core.tokens.Token;
import jmathlib.core.tokens.OperandToken;
import jmathlib.core.functions.ExternalFunction;
import jmathlib.core.tokens.CharToken;
/**An external function for creating random numbers*/
public class lower extends ExternalFunction
{
public OperandToken evaluate(Token[] operands)
{
// one operand
if (operands[0]==null) return null;
// operand must be a string
if (!(operands[0] instanceof CharToken)) return null;
String data = ((CharToken)operands[0]).getValue().toLowerCase();
return new CharToken(data);
}
}
/*
@GROUP
char
@SYNTAX
answer=FINDSTR(string1, string2)
@DOC
Finds all occcurences of the shorter string within the longer
@NOTES
.
@EXAMPLES
<programlisting>
.
</programlisting>
@SEE
strfind, upper
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -