Base64ToStr

From SCAR Divi Manual
Revision as of 17:04, 9 February 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function Base64ToStr(const Str: AnsiString): AnsiString; </source> ==Availability== SCAR Divi 3.31 > Current ==Description== D...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function Base64ToStr(const Str: AnsiString): AnsiString;

Availability

SCAR Divi 3.31 > Current

Description

Decodes a given string Str from base64 format to a regular string. If the input string was not in hexadecimal format, the function returns an empty string. The entered string is case-sensitive. This process can be reversed with StrToBase64.

Example

begin
  WriteLn(Base64ToStr('SGVsbG8gV29ybGQh'));
end.

Output:

Hello World!

See Also