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.