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:

This will make you a better decision maker | Annie Duke (author of “Thinking in Bets” and “Quit”, former pro poker…

Annie is a former professional poker player, decision-making expert, author, and special partner at First Round Capital.  ͏     ­͏     ­͏   ...

Contact Form

Name

Email *

Message *