This shows you the differences between two versions of the page.
— |
harlowe:lowerfirst [2017/10/09 20:39] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | **(lowerfirst: // [[harlowe:String|String]]//) -> //String//** | ||
+ | This macro produces a version of the given [[harlowe:string|string]], where the first alphanumeric character is lowercase, and | ||
+ | other characters are left as-is. | ||
+ | |||
+ | === Example usage: === | ||
+ | |||
+ | ''%%(lowerfirst: " College B")%%'' is the same as ''%%" college B"%%'' | ||
+ | |||
+ | === Details: === | ||
+ | |||
+ | If the first alphanumeric character cannot change case (for instance, if it's a [[harlowe:number|number]]) then nothing | ||
+ | will change in the string. So, "8DX" won't become "8dX". | ||
+ | |||
+ | The results of this macro for non-ASCII characters currently depends on the player's browser's Unicode | ||
+ | support. For instance, 'İ' in lowercase should be 'i̇', but some browsers don't support this. | ||
+ | |||
+ | === See also: === | ||
+ | |||
+ | [[harlowe:uppercase|(uppercase:)]], [[harlowe:lowercase|(lowercase:)]], [[harlowe:upperfirst|(upperfirst:)]] |