Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
from typing import ( | |
Sequence, | |
Iterable, | |
Callable | |
) | |
type Predicate[ T ] = Callable[ [ T ] , bool ] | |
type Converter[ TIn , TOut ] = Callable[ [ TIn ] , TOut ] | |
class QueryException( Exception ): |
private static uint Adler32(string str) | |
{ | |
const int mod = 65521; | |
uint a = 1, b = 0; | |
foreach (char c in str) { | |
a = (a + c) % mod; | |
b = (b + a) % mod; | |
} | |
return (b << 16) | a; | |
} |