mirror of
https://github.com/wader/fq.git
synced 2024-12-26 23:15:04 +03:00
e3ae1440c9
Feels less cluttered, easier to read and more consistent. Still keep tovalue, tobytes etc that are more basic functions this only renamed format related functions. Also there is an exceptin for to/fromjson as it comes from jq. Also fixes lots of spelling errors while reading thru.
22 lines
942 B
Plaintext
22 lines
942 B
Plaintext
def to_iso8859_1: _to_strencoding({encoding: "ISO8859_1"});
|
|
def from_iso8859_1: _from_strencoding({encoding: "ISO8859_1"});
|
|
def to_utf8: _to_strencoding({encoding: "UTF8"});
|
|
def from_utf8: _from_strencoding({encoding: "UTF8"});
|
|
def to_utf16: _to_strencoding({encoding: "UTF16"});
|
|
def from_utf16: _from_strencoding({encoding: "UTF16"});
|
|
def to_utf16le: _to_strencoding({encoding: "UTF16LE"});
|
|
def from_utf16le: _from_strencoding({encoding: "UTF16LE"});
|
|
def to_utf16be: _to_strencoding({encoding: "UTF16BE"});
|
|
def from_utf16be: _from_strencoding({encoding: "UTF16BE"});
|
|
|
|
def from_base64($opts): _from_base64({encoding: "std"} + $opts);
|
|
def from_base64: _from_base64(null);
|
|
def to_base64($opts): _to_base64({encoding: "std"} + $opts);
|
|
def to_base64: _to_base64(null);
|
|
|
|
# TODO: compat: remove at some point
|
|
def hex: _binary_or_orig(to_hex; from_hex);
|
|
def base64: _binary_or_orig(to_base64; from_base64);
|
|
def tohex: to_hex;
|
|
def fromhex: from_hex;
|