[][src]Static p5_sys::global::unchar

pub static unchar: UncharInternalType

Converts a single-character string to its corresponding integer representation. When an array of single-character string values is passed in, then an array of integers of the same length is returned.

Examples

print(unchar('A')); // 65
print(unchar(['A', 'B', 'C'])); // [ 65, 66, 67 ]
print(unchar(split('ABC', ''))); // [ 65, 66, 67 ]

Overloads

n value to parse


ns values to parse