Skip to content

ProtoString fromHex() Method

Seth Clydesdale edited this page May 23, 2015 · 2 revisions

<< Back to Conversion Methods

Example

Decoding a Hexadecimal encoded text string.

'48 65 6c 6c 6f'.fromHex(); // returns 'Hello'

Description

The fromHex() method was used to decode all hexadecimal encoded characters in a string. This method was dropped, so it's recommended to use decodeAs() instead.

Syntax

String.fromHex();

Information

You can find the source for the old conversion methods here.

Clone this wiki locally