Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.6.3 (changelog, source)

Predicate parseHexInt

Gets the integer value of hex when interpreted as hex. hex must be a valid hexadecimal string. For values greater than 7FFFFFFF (2^31-1, the maximum value that int can represent), there is no result.

"0"    => 0
"FF"   => 255
"f00d" => 61453

Import path

import codeql.util.Numbers
int parseHexInt(string hex)