跳到正文
本页尚未翻译成中文,以下为英文原文。 查看英文版

strrev Function ​

strrev reverses the characters in a string. Note that the characters are treated as Unicode characters (in technical terms, Unicode grapheme cluster boundaries are respected).

hcl
strrev(string)

Examples ​

shellsession
> strrev("hello")
olleh
> strrev("a ☃")
☃ a

基于 MPL-2.0 许可证发布。