Skip to contents

Converts a character vector to a slice-store-backed stringfish vector

Usage

convert_to_slice_store(x, length.out = length(x))

Arguments

x

A character vector

length.out

Optional output length used to recycle `x`

Value

The converted character vector

Details

Converts a character vector to a stringfish vector backed by `slice_store`. If `length.out` is supplied, `x` is recycled to that length before conversion. The converter pre-sizes the first `slice_store` slice from the normalized string bytes when possible. The opposite of `materialize`.

Examples

x <- convert_to_slice_store(letters)