Search thousands of free JavaScript snippets that you can quickly copy and paste into your web pages. Get free JavaScript tutorials, references, code, menus, calendars, popup windows, games, and much more.
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'));
}
Subscribe to:
Post Comments (Atom)
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. ͏ ͏ ͏ ...
No comments:
Post a Comment