unhex()

Data / Conversion

Description

Converts a hexadecimal string to an integer.

Syntax

int unhex(std::string s)

Parameters

NameTypeDescription
sstd::stringhex string

Returns

int

Related

Under the Hood

From Processing.h:

inline int unhex(const std::string& s) { return std::stoi(s,nullptr,16); }