Lower case all letters.
Upper case all letters.
Upper case first letter.
Upper case the first letter of all words.
"catch all formatter"
always returns the same message if called
converts user-defined enums to human readable values
user-defined enums must be passed in options
of carbone.render
Removes accents from text.
Renders carriage return \r
and line feed into documents instead of printing them as a string.
supported file formats: DOCX
, PDF
, ODT
, ODS
ODS
support is experimental
use the :convCRLF
formatter before :html
to convert to <br>
tags
example: {d.content:convCRLF:html}
Slices a string with a begin and an end.
Pads the string from the start with another string.
Pads the string from the end with another string.
Returns the length of a string or array.
Parameters | Description | Type |
---|---|---|
Parameters | Description | Type |
---|---|---|
Parameters | Description | Type |
---|---|---|
Parameters | Description | Type |
---|---|---|
Parameters | Description | Type |
---|---|---|
message
text to print
string
type
enum name passed in options
of carbone.render(data, options)
string
begin
Zero-based index at which to begin extraction.
integer
end
Zero-based index before which to end extraction
integer
targetLength
The length of the resulting string once the string has been padded. If the value is less than string length, then string is returned as-is.
number
padString
The string to pad the current str with. If padString is too long to stay within the targetLength, it will be truncated from the end. The default value is " "
string
targetLength
The length of the resulting string once the string has been padded. If the value is less than string length, then string is returned as-is.
number
padString
The string to pad the current str with. If padString is too long to stay within the targetLength, it will be truncated from the end. The default value is " "
string