Function binary_to_hex (o2scl)

O2scl : Function List

std::string o2scl::binary_to_hex(std::string s)

Take a string of binary quads and compress them to hexadecimal digits.

This function proceeds from left to right, ignoring parts of the string that do not consist of squences of four ‘1’s or ‘0’s.