diff --git a/projects/samskivert/src/java/com/samskivert/text/MessageUtil.java b/projects/samskivert/src/java/com/samskivert/text/MessageUtil.java index dd9b5d08..92855307 100644 --- a/projects/samskivert/src/java/com/samskivert/text/MessageUtil.java +++ b/projects/samskivert/src/java/com/samskivert/text/MessageUtil.java @@ -180,6 +180,19 @@ public class MessageUtil return compose(key, targs); } + /** + * Decomposes a compound key into its constituent parts. Arguments + * that were tainted during composition will remain tainted. + */ + public static String[] decompose (String compoundKey) + { + String[] args = StringUtil.split(compoundKey, "|"); + for (int ii = 0; ii < args.length; ii++) { + args[ii] = unescape(args[ii]); + } + return args; + } + /** * Returns a fully qualified message key which, when translated by * some other bundle, will know to resolve and utilize the supplied