Crate memchr[][src]

This crate defines two functions, memchr and memrchr, which expose a safe interface to the corresponding functions in libc.

Re-exports

extern crate std;
extern crate libc;
use std::prelude::v1::*;
use libc::c_void;
use libc::c_int;
use libc::size_t;
use std::cmp;

Structs

Memchr

An iterator for memchr

Memchr2

An iterator for Memchr2

Memchr3

An iterator for Memchr3

Constants

HI_U64
HI_USIZE
LO_U64
LO_USIZE
USIZE_BYTES

Functions

contains_zero_byte

Return true if x contains any zero byte.

memchr

A safe interface to memchr.

memchr2

Like memchr, but searches for two bytes instead of one.

memchr3

Like memchr, but searches for three bytes instead of one.

memrchr

A safe interface to memrchr.

repeat_byte