Urara-Blog/node_modules/.pnpm-store/v3/files/ec/6a708bc941dc3e70ece9810411f330885cb64f30ceffb6e10ce96e624e6e6d9db926acded957ae362c4a5058d0090e8405d7d8d079e54c605a2136267199d6
2022-08-14 01:14:53 +08:00

55 lines
2.1 KiB
Text

/**
* Check whether a character code is an ASCII control character.
*
* An **ASCII control** is a character in the inclusive range U+0000 NULL (NUL)
* to U+001F (US), or U+007F (DEL).
*
* @param {Code} code
* @returns {code is number}
*/
export function asciiControl(code: Code): code is number
/**
* Check whether a character code is a markdown line ending (see
* `markdownLineEnding`) or markdown space (see `markdownSpace`).
*
* @param {Code} code
* @returns {code is number}
*/
export function markdownLineEndingOrSpace(code: Code): code is number
/**
* Check whether a character code is a markdown line ending.
*
* A **markdown line ending** is the virtual characters M-0003 CARRIAGE RETURN
* LINE FEED (CRLF), M-0004 LINE FEED (LF) and M-0005 CARRIAGE RETURN (CR).
*
* In micromark, the actual character U+000A LINE FEED (LF) and U+000D CARRIAGE
* RETURN (CR) are replaced by these virtual characters depending on whether
* they occurred together.
*
* @param {Code} code
* @returns {code is number}
*/
export function markdownLineEnding(code: Code): code is number
/**
* Check whether a character code is a markdown space.
*
* A **markdown space** is the concrete character U+0020 SPACE (SP) and the
* virtual characters M-0001 VIRTUAL SPACE (VS) and M-0002 HORIZONTAL TAB (HT).
*
* In micromark, the actual character U+0009 CHARACTER TABULATION (HT) is
* replaced by one M-0002 HORIZONTAL TAB (HT) and between 0 and 3 M-0001 VIRTUAL
* SPACE (VS) characters, depending on the column at which the tab occurred.
*
* @param {Code} code
* @returns {code is number}
*/
export function markdownSpace(code: Code): code is number
export function asciiAlpha(code: Code): code is number
export function asciiDigit(code: Code): code is number
export function asciiHexDigit(code: Code): code is number
export function asciiAlphanumeric(code: Code): code is number
export function asciiPunctuation(code: Code): code is number
export function asciiAtext(code: Code): code is number
export function unicodeWhitespace(code: Code): code is number
export function unicodePunctuation(code: Code): code is number
export type Code = import('micromark-util-types').Code