trim()

Data / String Functions

Description

Removes whitespace characters from the beginning and end of a string.

Syntax

std::string trim(std::string s)

Parameters

NameTypeDescription
sstd::stringstring to trim

Returns

std::string

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...