Contents | Prev | Next

Locale-Sensitive String Operations

Programs frequently need to be able to manipulate strings in various ways. Common operations such as collating strings or finding various boundaries in text are surprisingly difficult to get right and are even more difficult when multiple languages need to be considered. JDK 1.1 provides classes for handling many of these common string manipulations in a locale-sensitive manner.

Collation

JDK 1.1 provides the class Collation for the language-sensitive comparison of strings. This capability is necessary for text sorting or language-sensitive searching. See the JavaDoc description of the class Collation for details.

Text Boundaries

The class TextBoundary is provided for finding various boundaries in text such as word boundaries, line boundaries, and sentence boundaries. These capabilities enable intelligent text selection and line-wrapping. See the JavaDoc description of the class TextBoundary for details.



Contents | Prev | Next
java-intl@java.sun.com
Copyright © 1996 Sun Microsystems, Inc. All rights reserved.