[stringtemplate-interest] String manipulations

Terence Parr parrt at cs.usfca.edu
Mon Sep 25 11:02:42 PDT 2006


On Sep 25, 2006, at 10:53 AM, Terence Parr wrote:

>
> On Sep 23, 2006, at 7:11 AM, John Snyders wrote:
>
>> Here is the change I made to StringTemplate.java
>>
>> It is just the one line added to the end:
>> 		to.attributeRenderers = from.attributeRenderers;
>
> Fixed.  Thanks.
>
>> Then in your templates you can use
>> $upperCase(it=name)$
>> or
>> $name:upperCase()$
>
> Yes, but doesn't that uppercase all strings?  Calling that upperCase

Ok, I think i get it, but don't you have to register a render with  
your subgroup to prevent it inheriting the renderer?

Ter




More information about the stringtemplate-interest mailing list