@lang:str.lower
Convert a string to lowercase.
On-chain (@lang:str.lower!): Maps ASCII letters only; every other byte passes through unchanged.
Returns: string
Syntax
Section titled “Syntax”@lang:str.lower(s)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
s | string | Source string |
See Also
Section titled “See Also”- @str.upper — convert to uppercase
On-chain face (@str.lower!)
Section titled “On-chain face (@str.lower!)”Lowercase the string return of a call on-chain through toLower:
ASCII letters only, every other byte passes verbatim (UTF-8 safe).
Examples
Section titled “Examples”load lang
set $pool 0x44fA8E6f47987339850636F88629646662444217
assert @str.lower!($pool::{symbol()(string)}) == "weth"See Also
Section titled “See Also”assert,@str.upper!