![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|
Functions | |
| int|None | charCodeAt (str src, int pos) |
| str|None | charStrAt (str src, int pos) |
| list[_ItemTV] | arrayReplaceAt (list[_ItemTV] src, int pos, list[_ItemTV] newElements) |
| bool | isValidEntityCode (int c) |
| str | fromCodePoint (int c) |
| str | replaceEntityPattern (str match, str name) |
| str | unescapeAll (str string) |
| str | stripEscape (str string) |
| str | escapeHtml (str raw) |
| str | escapeRE (str string) |
| bool | isSpace (int|None code) |
| bool | isStrSpace (str|None ch) |
| bool | isWhiteSpace (int code) |
| bool | isPunctChar (str ch) |
Variables | |
| _ItemTV = TypeVar("_ItemTV") | |
| UNESCAPE_ALL_RE | |
| DIGITAL_ENTITY_BASE10_RE = re.compile(r"#([0-9]{1,8})") | |
| DIGITAL_ENTITY_BASE16_RE = re.compile(r"#x([a-f0-9]{1,8})", re.IGNORECASE) | |
| str | ESCAPABLE = r"""\\!"#$%&'()*+,./:;<=>?@\[\]^`{}|_~-""" |
| ESCAPE_CHAR = re.compile(r"\\([" + ESCAPABLE + r"])") | |
| REGEXP_ESCAPE_RE = re.compile(r"[.?*+^$[\]\\(){}|-]") | |
| dict | MD_WHITESPACE |
Utilities for parsing source text
| list[_ItemTV] markdown_it.common.utils.arrayReplaceAt | ( | list[_ItemTV] | src, |
| int | pos, | ||
| list[_ItemTV] | newElements | ||
| ) |
Remove element from array and put another array at those position. Useful for some operations with tokens
| int | None markdown_it.common.utils.charCodeAt | ( | str | src, |
| int | pos | ||
| ) |
Returns the Unicode value of the character at the specified location. @param - index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. This was added for compatibility with python
| str | None markdown_it.common.utils.charStrAt | ( | str | src, |
| int | pos | ||
| ) |
Returns the Unicode value of the character at the specified location. @param - index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. This was added for compatibility with python
| str markdown_it.common.utils.escapeHtml | ( | str | raw | ) |
Replace special characters "&", "<", ">" and '"' to HTML-safe sequences.
| str markdown_it.common.utils.fromCodePoint | ( | int | c | ) |
Convert ordinal to unicode. Note, in the original Javascript two string characters were required, for codepoints larger than `0xFFFF`. But Python 3 can represent any unicode codepoint in one character.
| bool markdown_it.common.utils.isPunctChar | ( | str | ch | ) |
Check if character is a punctuation character.
| bool markdown_it.common.utils.isSpace | ( | int | None | code | ) |
Check if character code is a whitespace.
| bool markdown_it.common.utils.isStrSpace | ( | str | None | ch | ) |
Check if character is a whitespace.
| bool markdown_it.common.utils.isWhiteSpace | ( | int | code | ) |
Zs (unicode class) || [\t\f\v\r\n]
| str markdown_it.common.utils.replaceEntityPattern | ( | str | match, |
| str | name | ||
| ) |
Convert HTML entity patterns, see https://spec.commonmark.org/0.30/#entity-references
| str markdown_it.common.utils.stripEscape | ( | str | string | ) |
Strip escape \\ characters
| dict markdown_it.common.utils.MD_WHITESPACE |
| markdown_it.common.utils.UNESCAPE_ALL_RE |