aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm.zig
diff options
context:
space:
mode:
authorKyle Coffey <mariorules24@gmail.com>2023-05-10 09:47:58 -0500
committerGitHub <noreply@github.com>2023-05-10 17:47:58 +0300
commitebc3773542ef2bccedd268cfa42ee2cdd529210a (patch)
tree50e816fdfcfc0206cbbe0d13d39d24de6012068f /src/codegen/llvm.zig
parent6d7bb255a45ab89e08ab1981b48898ae7e6bef88 (diff)
downloadzig-ebc3773542ef2bccedd268cfa42ee2cdd529210a.tar.gz
zig-ebc3773542ef2bccedd268cfa42ee2cdd529210a.zip
Add std.mem.indexOfNone
This introduces a parallel set of functions to the std.mem.indexOfAny functions. They simply invert the logic, yielding the first/last index which is *not* contained in the "values" slice. Inverting this logic is useful when you are attempting to determine the initial span which contains only characters in a particular set. * Document the `indexOfNone` family. These descriptions are somewhat brief, but the functions themselves are also simple enough to describe in such a way.
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions