-
Couldn't load subscription status.
- Fork 0
ProtoString Case Manipulation Methods
Seth Clydesdale edited this page Jun 1, 2015
·
11 revisions
<< Back to ProtoString Method Reference
The case manipulation methods are used for manipulating the case of characters in a string. They have a similar function to the native toUpperCase() and toLowerCase() methods. Consult the table below for more information on the case manipulation methods available in ProtoString.
| Method | Description |
|---|---|
| capitalize() | Capitalizes the first character of a string and lowercases the rest. |
| toCamelCase() | Capitalizes each word in a string, except for the first, and removes whitespace. |
| toSentenceCase() | Capitalizes the first letter of every sentence and newline. |
| toSnakeCase() | Replaces whitespace, newlines, and dashes with an underscore, and returns the string in lower or upper case. |
| toTitleCase() | Capitalizes all the words of a string, except subsets, so that it can be used as a title. |
Home • History • ProtoString • Created by Seth Clydesdale