System.NetEncoding.TSqidsEncoding.TryDecodeSingle
Delphi
function TryDecodeSingle(const AHash: string; out ANumber: Integer): Boolean;
C++
bool __fastcall TryDecodeSingle(const System::UnicodeString AHash, /* out */ int &ANumber);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.NetEncoding.pas System.NetEncoding.hpp |
System.NetEncoding | TSqidsEncoding |
Description
Tries to decode a Sqids encoded string value and returns the decoded integer.
If AHash
is valid, TryDecodeSingle returns True
and sets AHash
to decoded integer value; otherwise, TryDecodeSingle returns False
.