# std: simplify utf8ToUtf16Le · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/ab6065407d74fc8d63d398c60f9fe653374d9d6d)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: ab6065407d74fc8d63d398c60f9fe653374d9d6d

Requested commit: ab6065407d74fc8d63d398c60f9fe653374d9d6d

Commit: ab6065407d74fc8d63d398c60f9fe653374d9d6d

Tree: f8d53192f40c96e6738d83264ebc683aee91ce87

Author: daurnimator

Committer: daurnimator

## Message

```
std: simplify utf8ToUtf16Le

Also faster, on my machine unicode/throughput_test.zig now gives e.g.
> original utf8ToUtf16Le: elapsed: 1048 ns (0 ms)
> new utf8ToUtf16Le: elapsed: 971 ns (0 ms)

```

## Parents

- [5843a6e3bc1a6353f76ebca57d6099337b90139a](https://git.cafe/gitcafe/zig/commit/5843a6e3bc1a6353f76ebca57d6099337b90139a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/ab6065407d74fc8d63d398c60f9fe653374d9d6d?format=markdown)
