The Artima Developer Community
Sponsored Link

Java Buzz Forum
Java's String.trim has a strange idea of whitespace

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Mike Kaufman

Posts: 125
Nickname: mkaufman
Registered: Jan, 2007

Mike Kaufman started programming in 1973 and is still here.
Java's String.trim has a strange idea of whitespace Posted: Nov 11, 2008 8:47 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Mike Kaufman.
Original Post: Java's String.trim has a strange idea of whitespace
Feed Title: Closing Braces
Feed URL: https://closingbraces.net/feed/
Feed Description: After-hours notes and opinions on Java and system development.
Latest Java Buzz Posts
Latest Java Buzz Posts by Mike Kaufman
Latest Posts From Closing Braces

Advertisement
Java represents strings using UTF-16, so one might assume that its "trim" method for trimming whitespace would be based on Unicode's view of which characters are whitespace. Or on Java's. Or would at least be consistent with other JDK methods. To my surprise, I've just realised that's far from the case.

Read: Java's String.trim has a strange idea of whitespace

Topic: Links for 2008-11-04 [del.icio.us] Previous Topic   Next Topic Topic: Obama Wins!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use