fn
makeSegments
testedReturns 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
| Parameter | Type | Description |
|---|---|---|
text | string | — |
Returns
QrSegment[]