comparison util/hex.lua @ 12355:a0ff5c438e9d

util.hex: Deprecate to/from in favour of encode/decode, for consistency!
author Matthew Wild <mwild1@gmail.com>
date Fri, 04 Mar 2022 15:22:45 +0000
parents 442019e955dc
children
comparison
equal deleted inserted replaced
12354:3ce3633527af 12355:a0ff5c438e9d
21 21
22 local function from(s) 22 local function from(s)
23 return (s_gsub(s_lower(s), "%X*(%x%x)%X*", hex_to_char)); 23 return (s_gsub(s_lower(s), "%X*(%x%x)%X*", hex_to_char));
24 end 24 end
25 25
26 return { to = to, from = from } 26 return {
27 encode = to, decode = from;
28 -- COMPAT w/pre-0.12:
29 to = to, from = from;
30 };