fixed: Compare literal bytes in the string

View source: R/regex.R

fixedR Documentation

Compare literal bytes in the string

Description

Compare literal bytes in the string

Usage

fixed(pattern, ignore_case = FALSE)

Arguments

pattern

Pattern to modify behavior.

ignore_case

Should case differences be ignored in the match?

Value

An integer vector.

Source

Adapted from the stringr package.

Dependency-free drop-in alternative for stringr::fixed(). This is very fast, but not usually what you want for non-ASCII character sets.


stringstatic documentation built on July 26, 2023, 5:32 p.m.