37
38 /*
39 **********************************************************************
40 * Author: Alan Liu
41 * Created: September 23 2003
42 * Since: ICU 2.8
43 **********************************************************************
44 */
45
46 package sun.text.normalizer;
47
48 import java.text.ParsePosition;
49
50 /**
51 * An iterator that returns 32-bit code points. This class is deliberately
52 * <em>not</em> related to any of the JDK or ICU4J character iterator classes
53 * in order to minimize complexity.
54 * @author Alan Liu
55 * @since ICU 2.8
56 */
57 public class RuleCharacterIterator {
58
59 // TODO: Ideas for later. (Do not implement if not needed, lest the
60 // code coverage numbers go down due to unused methods.)
61 // 1. Add a copy constructor, equals() method, clone() method.
62 // 2. Rather than return DONE, throw an exception if the end
63 // is reached -- this is an alternate usage model, probably not useful.
64 // 3. Return isEscaped from next(). If this happens,
65 // don't keep an isEscaped member variable.
66
67 /**
68 * Text being iterated.
69 */
70 private String text;
71
72 /**
73 * Position of iterator.
74 */
75 private ParsePosition pos;
76
|
37
38 /*
39 **********************************************************************
40 * Author: Alan Liu
41 * Created: September 23 2003
42 * Since: ICU 2.8
43 **********************************************************************
44 */
45
46 package sun.text.normalizer;
47
48 import java.text.ParsePosition;
49
50 /**
51 * An iterator that returns 32-bit code points. This class is deliberately
52 * <em>not</em> related to any of the JDK or ICU4J character iterator classes
53 * in order to minimize complexity.
54 * @author Alan Liu
55 * @since ICU 2.8
56 */
57 @SuppressWarnings("deprecation")
58 public class RuleCharacterIterator {
59
60 // TODO: Ideas for later. (Do not implement if not needed, lest the
61 // code coverage numbers go down due to unused methods.)
62 // 1. Add a copy constructor, equals() method, clone() method.
63 // 2. Rather than return DONE, throw an exception if the end
64 // is reached -- this is an alternate usage model, probably not useful.
65 // 3. Return isEscaped from next(). If this happens,
66 // don't keep an isEscaped member variable.
67
68 /**
69 * Text being iterated.
70 */
71 private String text;
72
73 /**
74 * Position of iterator.
75 */
76 private ParsePosition pos;
77
|