ICU-5463 Remove clearPattern pending any further discussion.
X-SVN-Rev: 20807
This commit is contained in:
parent
329ad7ee64
commit
8715e69ef8
@ -1193,27 +1193,6 @@ public class UnicodeSet extends UnicodeFilter implements Freezable {
|
|||||||
return this;
|
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("[:whitespace:]"));
|
|
||||||
* System.out.println(new UnicodeSet("[:whitespace:]").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.
|
* @return a code point IF the string consists of a single one.
|
||||||
* otherwise returns -1.
|
* otherwise returns -1.
|
||||||
|
Loading…
Reference in New Issue
Block a user