# std.mem: add more slice manipulation functions · gitcafe/zig

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

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

Visibility: public

Requested revision: 13076d5f225cf8ca2cddf1b67478baebabe8b13f

Requested commit: 13076d5f225cf8ca2cddf1b67478baebabe8b13f

Commit: 13076d5f225cf8ca2cddf1b67478baebabe8b13f

Tree: da52b17d27dd6a70a758ea5d1064da15bd72dcdb

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.mem: add more slice manipulation functions

 * add std.mem.trimLeft
 * add std.mem.trimRight
 * add std.mem.trimRight
 * add std.mem.lastIndexOfScalar
 * add std.mem.lastIndexOfAny
 * add std.mem.lastIndexOf
 * add std.mem.endsWith

closes #944

Thanks Braedon Wooding for the original PR

```

## Parents

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

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