Mimic_Me-Computer_Vision/mimic.js
// Convert a special character to its unicode value (can be 1 or 2 units long)
Convert a special character to its unicode value (can be 1 or 2 units long)
Convert a special character to its unicode value ( can be 1 or 2 units long )
function toUnicode(c) {
  if(c.length == 1)
    return c.charCodeAt(0);
  return ((((c.charCodeAt(0) - 0xD800) * 0x400) + (c.charCodeAt(1) - 0xDC00) + 0x10000));
}
function toUnicode ( c ) { if ( c . length == 1 ) return c . charCodeAt ( 0 ) ; return ( ( ( ( c . charCodeAt ( 0 ) - 0xD800 ) * 0x400 ) + ( c . charCodeAt ( 1 ) - 0xDC00 ) + 0x10000 ) ) ; }
Convert a special character to its unicode value (can be 1 or 2 units long)
Convert a special character to its unicode value ( can be 1 or 2 units long )