Word Boundaries (The Java™ Tutorials > Internationalization > Working with Text)
You'll want to create such a BreakIterator
when your application needs to perform operations on individual words. These operations might be common word- processing functions, such as selecting, cutting, pasting, and copying. Or, your application may search for words, and it must be able to distinguish entire words from simple strings.
When a BreakIterator
analyzes word boundaries, it differentiates between words and characters that are not part of words. These characters, which include spaces, tabs, punctuation marks, and most symbols, have word boundaries on both sides.
Read full article from Word Boundaries (The Java™ Tutorials > Internationalization > Working with Text)
No comments:
Post a Comment