Rexx - 对齐



此方法用于根据长度值添加字符串值的 justified 或 trim。

语法

justify(string,length)

参数

  • 字符串 - 需要进行 justified 的字符串值。

  • 长度 - justified 的值。

返回值

返回 justified 的字符串值。

示例

/* Main program */ 
options arexx_bifs 
say justify('This is a tutorial',14) 

运行以上程序后,我们将得到以下结果。

输出

This is a tuto 
rexx_regina.htm
广告

© . All rights reserved.