^capitalize( data )^

Tinderbox Icon


Code Type:   Export Mark-up
Code Scope of Action:   n/a

^capitalize( data )^

This text transform "filter" evaluates and transforms the data argument, by capitalizing the first letter of each word.

^capitalize(an example)^ outputs An Example

For note "a sample note"

^capitalize(^get(this,Name^)^ outputs A Sample Note

Characters other than the first in each word aren't aren't touched.

^capitalize(aN exaMple)^ outputs AN ExaMple

In the latter case you may need to lowercase the string first.


Up: Scope n/a
Previous: ^action( action )^  Next: ^else^ 

[Last updated: 14 Dec 2009, using v5.0]

Google search aTbRef for:  

Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]

Creative Commons License

Made with Tinderbox