Problem with String functions?

Could someone verify this for me? The String example sketch "StringLengthTrim" is failing with...

StringLengthTrim:26: error: no match for 'operator=' in 'stringOne = stringOne.String::trim()'

"StringLengthTrim", "StringCharacters", "StringComparisonOperators" and "StringReplace" are all failing!

Is this just me?

Fails for me, too.

The function trim() does not return a String. In fact it does the trim 'in place' and returns void.

Change:

  stringOne = stringOne.trim();

To:

  stringOne.trim();

It gets worse. I tried to look up the reference for String.trim():

file:///Applications/Arduino%201.0.app/Contents/Resources/Java/reference/StringTrim.html
No file exists at this address

Jeeze. I thought it was out of beta. :roll_eyes:

Hi guy,
have some news about trim function?

have some news about trim function?

There was plenty in this thread. The more important question is whether or not you have a question. Do you?