Classify

From UBot Studio
Jump to: navigation, search

This function is an Advanced Text function in the UBot Extended Library. This function classifies the text that is given by removing underscores and comverting strings to camelized class names.

Text to Classify: The text being classified. Can also be a variable, list item, table cell or a function.

Example


alert($classify("uBot_studio"))


The string "uBot_studio" contains an underscore. Notice that the first letter of each word is lower case.

Running the alert command will produce the classified string "UBotStudio". The function made each letter of each sentence camelized, and removed the underscore preceding the "s" in the word "studio".

The underscore serves an indicator that word following it needs to be camelized as well, meaning the first letter of that word will be converted to uppercase.


Classifytxt.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox