public class IcuSyntaxUtils extends Object
Important: Do not use outside of Soy code (treat as superpackage-private).
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.ImmutableList<SoyMsgPart> |
convertMsgPartsToEmbeddedIcuSyntax(com.google.common.collect.ImmutableList<SoyMsgPart> origMsgParts)
Given a list of msg parts: (a) if it contains any plural/select parts, then builds a new list
of msg parts where plural/select parts in the original msg parts are all embedded as raw text
in ICU format, (b) if it doesn't contain any plural/select parts, then simply returns the
original msg parts instead of creating a new list of identical msg parts.
|
public static com.google.common.collect.ImmutableList<SoyMsgPart> convertMsgPartsToEmbeddedIcuSyntax(com.google.common.collect.ImmutableList<SoyMsgPart> origMsgParts)
origMsgParts - The msg parts to convert.