commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (LANG-197) [lang] Extending VariableFormatter to use FormatPatterns
Date Wed, 28 Nov 2007 14:47:43 GMT

    [ https://issues.apache.org/jira/browse/LANG-197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12546254
] 

mbenson edited comment on LANG-197 at 11/28/07 6:45 AM:
------------------------------------------------------------

I don't see that any changes were made directly to StrSubstitutor... all in all, this isn't
completely finished.  Seems like there might be a few options here; it might be most straightforward
to simply reuse ExtendedMessageFormat/support code to add the metaFormat concept to StrSubstitutor.

EDIT:  Some thought would need to go into how to differentiate between variables with embedded
commas and commas intended to set apart a format--I'm unconvinced that a boolean property
enabling this behavior is consistent with the modular structure of StrSubstitutor.

      was (Author: mbenson):
    I don't see that any changes were made directly to StrSubstitutor... all in all, this
isn't completely finished.  Seems like there might be a few options here; it might be most
straightforward to simply reuse ExtendedMessageFormat/support code to add the metaFormat concept
to StrSubstitutor.
  
> [lang] Extending VariableFormatter to use FormatPatterns
> --------------------------------------------------------
>
>                 Key: LANG-197
>                 URL: https://issues.apache.org/jira/browse/LANG-197
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 2.1
>         Environment: Operating System: All
> Platform: Other
>            Reporter: Tom Schindl
>            Priority: Minor
>         Attachments: patch.txt, VariableFormatterWithFormating.java, VariableFormatterWithFormatingTest.java
>
>
> It would be great to extend VariableFormatter to use Format-Patterns like
> MessageFormat does it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message