mimekit-ts - v1.0.0
    Preparing search index...

    Function decodePhrase

    • Decode an RFC 2047 phrase using supplied parser options.

      Parameters

      • options: ParserOptions

        Parser options to use.

      • phrase: Uint8Array

        Phrase bytes to decode.

      • startIndex: number

        Starting byte index.

      • count: number

        Number of bytes to decode.

      Returns string

      The decoded phrase.

      startIndex or count is outside phrase.

    • Decode an RFC 2047 phrase using supplied parser options.

      Parameters

      • options: ParserOptions

        Parser options to use.

      • phrase: Uint8Array

        Phrase bytes to decode.

      Returns string

      The decoded phrase.

    • Decode an RFC 2047 phrase using default parser options.

      Parameters

      • phrase: Uint8Array

        Phrase bytes to decode.

      • OptionalstartIndex: number

        Starting byte index.

      • Optionalcount: number

        Number of bytes to decode.

      Returns string

      The decoded phrase.

      startIndex or count is outside phrase.