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

Function a2b

tools/a2b.js:15–21  ·  view source on GitHub ↗
(ascii)

Source from the content-addressed store, hash-verified

13var ranges = [];
14
15function a2b(ascii) {
16 var codes = [];
17 for (var i = 0, l = ascii.length; i < l; i++) {
18 codes.push(ascii.charCodeAt(i));
19 }
20 return codes;
21}
22console.log('a2b:', a2b('中2b'));
23console.log('hex:', (999999).toString(16));
24

Callers 1

a2b.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected