ICU-0 add internal function for getting a string more easily

X-SVN-Rev: 13230
This commit is contained in:
Mark Davis 2003-09-29 15:27:12 +00:00
parent d703a24b1c
commit 4cb97d0d64

View file

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/UnicodeSetIterator.java,v $
* $Date: 2003/06/03 18:49:35 $
* $Revision: 1.14 $
* $Date: 2003/09/29 15:27:12 $
* $Revision: 1.15 $
*
*****************************************************************************************
*/
@ -215,6 +215,17 @@ public class UnicodeSetIterator {
}
}
/**
* Gets the current string from the iterator. Only use after calling next(), not nextRange().
* @internal
*/
public String getString() {
if (codepoint == IS_STRING) {
return UTF16.valueOf(codepoint);
}
return string;
}
// ======================= PRIVATES ===========================
private UnicodeSet set;