Pad a string with a specified character

更新时间:
复制 MD 格式

1. Component introduction

Note

Prerequisites: None

Use this component to pad a string with a specified character.

2. Input items

Note

You can view the help information for each input parameter on the component pane in the application flow editor.

3. Output items

Note

You can view the help information for each output parameter on the component pane in the application flow editor.

4. Component usage examples

4.1. Component configuration example

  1. Set string_to_pad to "Alibaba Cloud RP".

  2. For Specify Character, enter "A".

  3. Set padding_method to "After string".

  4. Set padding_length to "1".

  5. Keep the default values for the advanced options.

image

4.2. Example execution result

After the flow runs successfully, click the Log tab to view the execution result. The following figure shows the result.