0x[Hex] operation added

This commit is contained in:
windhamwong@nva-hk.com 2017-03-24 11:02:37 +00:00
parent f1449ac869
commit 112af3c74b
4 changed files with 29 additions and 0 deletions

View file

@ -391,6 +391,15 @@ var OperationConfig = {
}
]
},
"From 0x[Hex]": {
description: "Converts a hexadecimal byte string back into a its raw value.<br><br>e.g. <code>0x217e21</code> becomes the UTF-8 encoded string <code>!~!</code>",
run: ByteRepr.runFrom0xHex,
highlight: ByteRepr.highlightFrom,
highlightReverse: ByteRepr.highlightTo,
inputType: "string",
outputType: "string",
args: []
},
"From Hex": {
description: "Converts a hexadecimal byte string back into a its raw value.<br><br>e.g. <code>ce 93 ce b5 ce b9 ce ac 20 cf 83 ce bf cf 85 0a</code> becomes the UTF-8 encoded string <code>Γειά σου</code>",
run: ByteRepr.runFromHex,