(chr)
| 141233 | |
| 141234 | // Gets the decimal code of a literal code unit, \xHH, \uHHHH, or a backslash-escaped literal |
| 141235 | function charCode(chr) { |
| 141236 | var esc = /^\\[xu](.+)/.exec(chr); |
| 141237 | return esc ? dec(esc[1]) : chr.charCodeAt(chr[0] === '\\' ? 1 : 0); |
| 141238 | } |
| 141239 | |
| 141240 | // Inverts a list of ordered BMP characters and ranges |
| 141241 | function invertBmp(range) { |