# std.mem: rename all "index of" functions · gitcafe/zig

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

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

Visibility: public

Requested revision: 97bef50dc32e332839efe1a9c5cbf51364a431dc

Requested commit: 97bef50dc32e332839efe1a9c5cbf51364a431dc

Commit: 97bef50dc32e332839efe1a9c5cbf51364a431dc

Tree: e984ca904e3091bd631e88ba46c89c435e1b974a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.mem: rename all "index of" functions

Moving towards our function naming convention of having one word per
concept and constructing function names out of concatenated concepts.
In `std.mem` the concepts are:
* "find" - return index of substring
* "pos" - starting index parameter
* "last" - search from the end
* "linear" - simple for loop rather than fancy algo
* "scalar" - substring is a single element

```

## Parents

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

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