ICU-4925 Improve UnicodeSet and UnicodeSetIterator documentation

X-SVN-Rev: 18799
This commit is contained in:
Vladimir Weinstein 2005-11-16 01:09:12 +00:00
parent 208dee8b56
commit fe6c7107d6
2 changed files with 7 additions and 5 deletions

View File

@ -260,9 +260,11 @@ import java.util.regex.Pattern;
* </tr>
* </table>
* </blockquote>
* <p>To iterate over contents of UnicodeSet, use UnicodeSetIterator class.
*
* @author Alan Liu
* @stable ICU 2.0
* @see UnicodeSetIterator
*/
public class UnicodeSet extends UnicodeFilter {

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2004, International Business Machines Corporation and *
* Copyright (C) 1996-2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -16,9 +16,9 @@ import java.util.*;
*
* <p>To iterate over code points, use a loop like this:
* <pre>
* UnicodeSetIterator it(set);
* UnicodeSetIterator it = new UnicodeSetIterator(set);
* while (set.next()) {
* if (set.codepoint != UnicodeSetIterator::IS_STRING) {
* if (set.codepoint != UnicodeSetIterator.IS_STRING) {
* processCodepoint(set.codepoint);
* } else {
* processString(set.string);
@ -28,9 +28,9 @@ import java.util.*;
*
* <p>To iterate over code point ranges, use a loop like this:
* <pre>
* UnicodeSetIterator it(set);
* UnicodeSetIterator it = new UnicodeSetIterator(set);
* while (set.nextRange()) {
* if (set.codepoint != UnicodeSetIterator::IS_STRING) {
* if (set.codepoint != UnicodeSetIterator.IS_STRING) {
* processCodepointRange(set.codepoint, set.codepointEnd);
* } else {
* processString(set.string);