Namespace: QuotedPrintable

QuotedPrintable

Quoted Printable operations.
Some parts taken from mimelib (http://github.com/andris9/mimelib)

Author:
  • Andris Reinman
  • <p>n1474335 [n1474335@gmail.com]</p>
License:
  • Apache-2.0
Source:

Methods


<static> run_to(input, args)

To Quoted Printable operation.

Parameters:
Name Type Description
input byte_array
args Array.<Object>
Source:
Returns:
Type
string

<static> run_from(input, args)

From Quoted Printable operation.

Parameters:
Name Type Description
input string
args Array.<Object>
Source:
Returns:
Type
byte_array

<static> mimeDecode(str)

Decodes mime-encoded data.

Parameters:
Name Type Description
str string
Source:
Returns:
Type
byte_array

<static> mimeEncode(buffer)

Encodes mime data.

Parameters:
Name Type Description
buffer byte_array
Source:
Returns:
Type
string

<private, static> _checkRanges(nr, ranges)

Checks if a given number falls within a given set of ranges.

Parameters:
Name Type Description
nr number
ranges Array.<byte_array>
Source:
Returns:
Type
bolean

<private, static> _addSoftLinebreaks(str, encoding)

Adds soft line breaks to a string.
Lines can't be longer that 76 + = 78 bytes
http://tools.ietf.org/html/rfc2045#section-6.7

Parameters:
Name Type Description
str string
encoding string
Source:
Returns:
Type
string

<private, static> _addBase64SoftLinebreaks(base64EncodedStr, lineLengthMax)

Adds soft line breaks to a base64 string.

Parameters:
Name Type Description
base64EncodedStr string
lineLengthMax number
Source:
Returns:
Type
string

<private, static> _addQPSoftLinebreaks(mimeEncodedStr, lineLengthMax)

Adds soft line breaks to a quoted printable string.

Parameters:
Name Type Description
mimeEncodedStr string
lineLengthMax number
Source:
Returns:
Type
string