Creating an RWBreakSearch
RWUBreakSearch objects are created given:
*the type of boundary to be analyzed. The BreakType enum specifies the type of boundary. The enumerated values are CodePoint, Line, Sentence, Word, and Character.
*an RWUString that provides text for processing
*(optional) a locale name. If no locale is specified, then the current default locale is used.
For example, this code creates an RWUBreakSearch that can be used to search the RWUString myString for character breaks based on the current default locale:
 
RWUBreakSearch searcher(RWUBreakSearch::Character, myString);