MCPcopy Create free account
hub / github.com/sql-js/sql.js / charType

Function charType

GUI/codemirror/lib/codemirror.js:7381–7389  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

7379 // Character types for codepoints 0x600 to 0x6ff
7380 var arabicTypes = "rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm";
7381 function charType(code) {
7382 if (code <= 0xf7) return lowTypes.charAt(code);
7383 else if (0x590 <= code && code <= 0x5f4) return "R";
7384 else if (0x600 <= code && code <= 0x6ed) return arabicTypes.charAt(code - 0x600);
7385 else if (0x6ee <= code && code <= 0x8ac) return "r";
7386 else if (0x2000 <= code && code <= 0x200b) return "w";
7387 else if (code == 0x200c) return "b";
7388 else return "L";
7389 }
7390
7391 var bidiRE = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
7392 var isNeutral = /[stwN]/, isStrong = /[LRr]/, countsAsLeft = /[Lb1n]/, countsAsNum = /[1n]/;

Callers 1

codemirror.jsFile · 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…