Repeat string

サポート対象:バッチ、高速

Repeats a string the given number of times. A count of zero or less gives an empty string.

式のカテゴリー: 文字列

引数

  • Count: The number of times to repeat the string.
    Expression<Integer>
  • Expression: The string to repeat.
    Expression<String>

出力タイプ: String

例

例1:基本ケース

引数の値:

  • Count: 3
  • Expression: ab

出力: ababab


例2:Null ケース

引数の値:

  • Count: count
  • Expression: string
stringcount出力
null2null
abnullnull
nullnullnull

例3:エッジケース

説明: A count of zero or less gives an empty string.

引数の値:

  • Count: count
  • Expression: string
stringcount出力
ab1ab
ab0empty string
ab-2empty string
empty string5empty string