MCPcopy
hub / github.com/Exrick/xpay / isPrintable

Function isPrintable

xpay-code/src/main/resources/static/swagger/swagger-ui.js:10402–10407  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

10400// should also be escaped. [However,] This isn’t mandatory"
10401// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029.
10402function 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.
10410function isPlainSafe(c) {

Callers 4

isPlainSafeFunction · 0.85
isPlainSafeFirstFunction · 0.85
chooseScalarStyleFunction · 0.85
escapeStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected