Package com.ibm.icu.impl
Class SimpleFormatterImpl.IterInternal
java.lang.Object
com.ibm.icu.impl.SimpleFormatterImpl.IterInternal
- Enclosing class:
SimpleFormatterImpl
Internal iterator interface for maximum efficiency.
Usage boilerplate:
long state = 0; while (true) { state = IterInternal.step(state, compiledPattern, output); if (state == IterInternal.DONE) { break; } int argIndex = IterInternal.getArgIndex(state); // Append the string corresponding to argIndex to output }
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getArgIndex
(long state) static long
step
(long state, CharSequence compiledPattern, Appendable output)
-
Field Details
-
DONE
public static final long DONE- See Also:
-
-
Constructor Details
-
IterInternal
public IterInternal()
-
-
Method Details
-
step
-
getArgIndex
public static int getArgIndex(long state)
-