Difference between revisions of "HexToStr"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function HexToStr(const Str: AnsiString): AnsiString; </source> ==Availability== SCAR Divi 3.31 > Current ==Description== Deco...")
 
Line 8: Line 8:
  
 
==Description==
 
==Description==
Decodes a given string '''Str''' from [http://en.wikipedia.org/wiki/Hexadecimal hexadecimal format] to a regular string. If the input string was not in hexadecimal format, the function returns an empty string.
+
Decodes a given string '''Str''' from [http://en.wikipedia.org/wiki/Hexadecimal hexadecimal format] to a regular string. If the input string was not in hexadecimal format, the function returns an empty string. This process can be reversed with [[StrToHex]].
  
 
==Example==
 
==Example==
Line 25: Line 25:
  
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:File Functions]]
+
[[Category:Encoding Functions]]

Revision as of 15:58, 9 February 2012

Definition

function HexToStr(const Str: AnsiString): AnsiString;

Availability

SCAR Divi 3.31 > Current

Description

Decodes a given string Str from hexadecimal format to a regular string. If the input string was not in hexadecimal format, the function returns an empty string. This process can be reversed with StrToHex.

Example

begin
  WriteLn(HexToStr('48656C6C6F20576F726C6421'));
end.

Output:

Hello World!

See Also