ICU-5463 Remove clearPattern pending any further discussion.

X-SVN-Rev: 20807
This commit is contained in:
George Rhoten 2006-12-18 22:36:12 +00:00
parent 329ad7ee64
commit 8715e69ef8

View File

@ -1193,27 +1193,6 @@ public class UnicodeSet extends UnicodeFilter implements Freezable {
return this;
}
/**
* Clears the pattern used to create this set, if there was one. The effect
* of this is that the next time that toString() or toPattern() is called,
* the pattern will be constructed. Thus:
* <pre>
* System.out.println(new UnicodeSet(&quot;[:whitespace:]&quot;));
* System.out.println(new UnicodeSet(&quot;[:whitespace:]&quot;).clearPattern());
* </pre>
* produces:
* <pre>
* [:whitespace:]
* [\\u0009-\\u0085\\u00A0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]
* </pre>
* @return this, for chaining
* @draft
*/
public final UnicodeSet clearPattern() {
pat = null;
return this;
}
/**
* @return a code point IF the string consists of a single one.
* otherwise returns -1.