> For the complete documentation index, see [llms.txt](https://docs.cheddar.vihan.org/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cheddar.vihan.org/docs/standard-library/string/length.md).

# Length

| type   | returns  |
| ------ | -------- |
| Getter | `number` |

## Explanation

Returns the size of the string accounting for surrogate characters.

## Examples

```swift
"".len == 0
"🐐".len == 1
"1\n2".len == 3
"Hello".len == 5
"1 2 3".len == 5
```
