MCPcopy
hub / github.com/hotoo/pinyin / hexStr

Function hexStr

tools/urlencode.js:30–32  ·  view source on GitHub ↗
(dec)

Source from the content-addressed store, hash-verified

28 // * returns 3: 'http://www.google.nl/search?q=php.js&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a'
29
30 var hexStr = function (dec) {
31 return '%' + dec.toString(16).toUpperCase();
32 };
33
34 var ret = '',
35 unreserved = /[\w.-]/; // A-Za-z0-9_.- // Tilde is not here for historical reasons; to preserve it, use rawurlencode instead

Callers 1

URLEncodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…