drupflare/worker - v1.0.4
    Preparing search index...

    Function sliceLiteral

    • Cuts an encoded literal into pieces each of which fits the budget.

      Each piece is a valid literal of the same kind, so concatenating them reproduces the value. Hex is cut on byte boundaries and text on whole characters (never halving a multi-byte sequence).

      Parameters

      • literal: string
      • budget: number

      Returns string[]