This version is out of date, covering development from v4.6.0 to v4.7.1. It is maintained here only for inbound reference links from elsewhere. Jump to the current version of aTbRef. |
|
A Tinderbox Reference File : Export Codes : Export Code Scope : Scope n/a : ^capitalize( data )^ | aTbRef Site Map |
^capitalize( data )^ |
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^ |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]