Difference between revisions of "Template:String-handling templates"
Jump to navigation
Jump to search
m (1 revision imported) |
m (1 revision imported) |
||
(One intermediate revision by the same user not shown) | |||
Line 83: | Line 83: | ||
| {{tl|replace}} | Returns the string, after replacing ''all'' occurrences of a specified string with another string. | | {{tl|replace}} | Returns the string, after replacing ''all'' occurrences of a specified string with another string. | ||
| {{tl|str rep}} | Returns the string, after replacing the first occurrence of a specified string with another string. | | {{tl|str rep}} | Returns the string, after replacing the first occurrence of a specified string with another string. | ||
− | |||
}} | }} | ||
| <!---(Length)---> | | <!---(Length)---> | ||
{{Aligned table | {{Aligned table | ||
|col1style=text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic; | |col1style=text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic; | ||
+ | | {{tl|str len}} | Returns a string's length. | ||
| {{tl|iflenge}} | [if len]gth [g]reater than or [e]qual to. | | {{tl|iflenge}} | [if len]gth [g]reater than or [e]qual to. | ||
| {{tl|str ≥ len}} | To check if a string is "longer or equally long" or "shorter" than a given length. | | {{tl|str ≥ len}} | To check if a string is "longer or equally long" or "shorter" than a given length. |