Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Trim(params char[])

Returns a new StringView in which all leading and trailing occurrences of a set of specified characters from the current StringView are removed.
Read time 1 minuteLast updated 9 days ago

Definition

Trim(char[])

public StringView Trim(params char[] chrs)

Parameters

chrs

A set of characters to remove.

Returns

Type

Description

StringViewA new StringView.