254
edits
Line 180: | Line 180: | ||
|sc(text)||text||Converts '''text''' to sentence case.<br>Example: sc('HELLO THERE!') = 'Hello there!' | |sc(text)||text||Converts '''text''' to sentence case.<br>Example: sc('HELLO THERE!') = 'Hello there!' | ||
|- | |- | ||
| | |set(name, data)||nothing||Declares a new variable called '''name''' containing '''data'''.<br>Example: set('temp', 'text') | ||
|- | |- | ||
| | |split(text, find, index)||text||Splits '''text''' on '''find''' and returns the specified '''index'''. Index starts from 1.<br>Example: split('2011-05-19', '-', 2) = 05 | ||
|- | |- | ||
| | |start(text, find)||boolean||Checks if '''find''' matches the start of '''text'''.<br>Example: start('1999', '199') = true | ||
|- | |- | ||
| | |tc(text)||text||Converts '''text''' to title case.<br>Example: tc('HELLO THERE!') = 'Hello There!' | ||
|- | |- | ||
| | |uc(text)||text||Converts '''text''' to upper case.<br>Example: uc('abcd') = 'ABCD' | ||
|} | |} | ||
edits