(c)
| 10400 | // should also be escaped. [However,] This isn’t mandatory" |
| 10401 | // Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029. |
| 10402 | function isPrintable(c) { |
| 10403 | return (0x00020 <= c && c <= 0x00007E) |
| 10404 | || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029) |
| 10405 | || ((0x0E000 <= c && c <= 0x00FFFD) && c !== 0xFEFF /* BOM */) |
| 10406 | || (0x10000 <= c && c <= 0x10FFFF); |
| 10407 | } |
| 10408 | |
| 10409 | // Simplified test for values allowed after the first character in plain style. |
| 10410 | function isPlainSafe(c) { |
no outgoing calls
no test coverage detected