mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
migrate docs to mdx
This commit is contained in:
26
website/docs/language/functions/strrev.mdx
Normal file
26
website/docs/language/functions/strrev.mdx
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
page_title: strrev - Functions - Configuration Language
|
||||
description: The strrev function reverses a string.
|
||||
---
|
||||
|
||||
# `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](https://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries) are respected).
|
||||
|
||||
```hcl
|
||||
strrev(string)
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
||||
```
|
||||
> strrev("hello")
|
||||
olleh
|
||||
> strrev("a ☃")
|
||||
☃ a
|
||||
```
|
||||
|
||||
## Related Functions
|
||||
|
||||
* [`reverse`](/language/functions/reverse) reverses a sequence.
|
||||
Reference in New Issue
Block a user