typescript-closure-tools
Version:
Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files
23 lines (19 loc) • 877 B
TypeScript
/// <reference path="../../../globals.d.ts" />
declare module goog.i18n.mime {
/**
* Encodes a string for inclusion in a MIME header. The string is encoded
* in UTF-8 according to RFC 1522, using quoted-printable form.
* @param {string} str The string to encode.
* @param {boolean=} opt_noquote Whether double-quote characters should also
* be escaped (should be true if the result will be placed inside a
* quoted string for a parameter value in a MIME header).
* @return {string} The encoded string.
*/
function encode(str: string, opt_noquote?: boolean): string;
/**
* Get an array of UTF-8 hex codes for a given character.
* @param {string} c The matched character.
* @return {!Array.<string>} A hex array representing the character.
*/
function getHexCharArray(c: string): string[];
}