AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
htob (String str) yoix.string
 
Returns an array of int values built by translating each pair of hexadecimal digits in str, up to the first null character, into its integer, namely byte value, equivalent. Hexadecimal input strings can be generated by atoh.
 
 Example:   The program,
import yoix.stdio.*;
import yoix.string.*;

puts(htoa("4E6F77206973207468652074696D652E2E2E"));
puts(toString(htob("4E6F77206973207468652074696D652E2E2E")));
prints
Now is the time...
Array[18:0]
   >78
    111
    119
    32
    105
    115
    32
    116
    104
    101
    32
    116
    105
    109
    101
    46
    46
    46
on standard output.
 
 Return:   String
 
 See Also:   atoh, btoh, htoa

 

Yoix is a registered trademark of AT&T Inc.