R
fn

makeSegments

tested

Returns a new mutable list of zero or more segments to represent the given Unicode text string. The result may use various segment modes and switch modes to optimize the length of the bit stream.

Signature

ts
export function makeSegments(text: string): QrSegment[]{ ... }

Parameters

ParameterTypeDescription
textstring

Returns

QrSegment[]