Dart ascii to hex

ascii_to_hex(form) { var symbols = " !\"#\$%&'()*+,-./0123456789:;<=>?@"; var loAZ = "abcdefghijklmnopqrstuvwxyz"; symbols += loAZ.toUpperCase(); symbols += "[\\]^_`"; symbols += loAZ; symbols += "{|}~"; var valueStr = form; var hexChars = "0123456789abcdef"; var text = ""; for( var i=0; i Divide, returning an integer result if ( text != "" ) text += " "; text += hexChars[index2]; text += hexChars[index1]; } return text; } void main() { print(ascii_to_hex('form')); }

No comments:

I Quit AeroMedLab

Watch now (2 mins) | Today is my last day at AeroMedLab ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­...

Contact Form

Name

Email *

Message *