Class SimpleFormatterImpl.IterInternal
java.lang.Object
org.graalvm.shadowed.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 intgetArgIndex(long state) static longstep(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)
-