UString.Trim Method
| Explanation | Remove spaces, tabs, line breaks, etc. from the front and back of the string. The target character can be specified to be removed by specifying an argument.If the argument is omitted, tabs, single-byte spaces, and line breaks are targeted. (Full-width space is not applicable) Unlike the trim function, it does not change anything other than before and after the string. This method updates the value of the String object. Added since Ver.5.0.0 Not available on Mobile | |
| Call format | var s = str.Trim( [ chars ]) | |
| Return value | Character string with spaces removed | |
| Arguments | UString chars | Characters to be removed Specify the character string in which the characters you want to remove are arranged. If omitted, tabs, half-width spaces, and line breaks are targeted. |
| Exception | None | |
| Example of use | | |
| Related item | trim method | |