You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmmn.. I think that the issue isn't that it is returning the search characters, it is retuning an empty string when the search characters aren't found. If this isn't the appropriate behavior, what should the appropriate behavior be?
I'd take a look at how Processing implements these and do the same. I believe readStringUntil(x) returns x as well as the string that comes before it. This is why I usually trim() the results of it. There are times when you need the delimiter (which I assume is what you mean by search) characters.
readLine() on the other hand, I think should automatically trim any newline or return. Though there may be use cases where that's a bad idea. Can anyone thing of one?
No description provided.
The text was updated successfully, but these errors were encountered: