Format¶
| Spice | |
|---|---|
Functions¶
toUpper¶
| Spice | |
|---|---|
Returns the given char as upper case version
Parameters
| Name | Type | Description |
|---|---|---|
c |
char |
Returns: char — Char in upper case
toUpper¶
| Spice | |
|---|---|
Returns the given text in caps
Parameters
| Name | Type | Description |
|---|---|---|
text |
const String& |
Returns: String — Text in caps
toLower¶
| Spice | |
|---|---|
Returns the given char as lower case version
Parameters
| Name | Type | Description |
|---|---|---|
c |
char |
Returns: char — Char in lower case
toLower¶
| Spice | |
|---|---|
Returns the given text in all-lower letters
Parameters
| Name | Type | Description |
|---|---|---|
text |
const String& |
Returns: String — Text in all-lower letters
capitalize¶
| Spice | |
|---|---|
Returns the given text in capitalized form
Parameters
| Name | Type | Description |
|---|---|---|
text |
const String& |
Returns: String — Capitalized text
formatThousandsDelimiter¶
| Spice | |
|---|---|
Format the given number with thousands delimiter
Parameters
| Name | Type | Description |
|---|---|---|
input |
int |
Number |
delimiter |
char |
Custom thousands delimiter (default: ',') |
Returns: String — Formatted string
formatStorageSize¶
| Spice | |
|---|---|
Returns a formatted storage string (e.g. 1.4 MB for 1,500,000)
Parameters
| Name | Type | Description |
|---|---|---|
bytes |
unsigned long |
Number of bytes |
useFactor1024 |
bool |
Use factor 1024 instead the default factor of 1000 (default: false) |
Returns: String — Formatted string