justify
此方法用于根据长度值添加对齐或修剪字符串值。
语法 (Syntax)
justify(string,length)
参数 (Parameters)
String - 需要进行对齐的字符串值。
Length - 理由的值。
返回值 (Return Value)
返回对齐的字符串值。
例子 (Example)
/* Main program */
options arexx_bifs
say justify('This is a tutorial',14)
当我们运行上述程序时,我们将得到以下结果。
输出 (Output)
This is a tuto