mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-0 add internal function for getting a string more easily
X-SVN-Rev: 13230
This commit is contained in:
parent
d703a24b1c
commit
4cb97d0d64
1 changed files with 13 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue