Humanize

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with " This function is an Advanced Text function in the UBot Extended Library. This function converts an underscored, dasherized or camelized string into a humanized one. Als...")
 
 
Line 13: Line 13:
 
</pre>
 
</pre>
  
 
+
The text provided is camelized and dasherized.
The last name "Norman" is produced by the [[Account Data]] function.
+
  
 
Running the [[alert]] command will run the humanize function, which then humanizes the dasherized, camel case text provided.
 
Running the [[alert]] command will run the humanize function, which then humanizes the dasherized, camel case text provided.

Latest revision as of 21:04, 10 July 2015

This function is an Advanced Text function in the UBot Extended Library.

This function converts an underscored, dasherized or camelized string into a humanized one. Also removes beginning and ending whitespace, and removes the postfix '_id'.

Text to Humanize: The text being modified and humanized.

[edit] Example


alert($humanize("I-Love-UBot-Studio"))

The text provided is camelized and dasherized.

Running the alert command will run the humanize function, which then humanizes the dasherized, camel case text provided.


Humtxt.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox