gen-regexp-special-case.cc |
|
7885 |
property-sequences.cc |
Generated from following Node.js source:
package.json
```
{
"private": true,
"dependencies": {
"unicode-12.0.0": "^0.7.9"
}
}
```
generate-unicode-sequence-property-data.js
```
const toHex = (symbol) => {
return '0x' + symbol.codePointAt(0).toString(16)
.toUpperCase().padStart(6, '0');
};
const generateData = (property) => {
const sequences =
require(`unicode-12.0.0/Sequence_Property/${ property }/index.js`);
const id = property.replace(/_/g, '') + 's';
const buffer = [];
for (const sequence of sequences) {
const symbols = [...sequence];
const codePoints = symbols.map(symbol => toHex(symbol));
buffer.push(' ' + codePoints.join(', ') + ', 0,');
}
const output =
`const base::uc32 UnicodePropertySequences::k${ id }[] = {\n` +
`${ buffer.join('\n') }\n 0 // null-terminating the list\n};\n`;
return output;
};
const properties = [
'Emoji_Flag_Sequence',
'Emoji_Tag_Sequence',
'Emoji_ZWJ_Sequence',
];
for (const property of properties) {
console.log(generateData(property));
}
```
|
58042 |
property-sequences.h |
|
670 |
regexp-ast.cc |
|
11824 |
regexp-ast.h |
|
25356 |
regexp-bytecode-generator-inl.h |
|
1666 |
regexp-bytecode-generator.cc |
|
12692 |
regexp-bytecode-generator.h |
|
6283 |
regexp-bytecode-peephole.cc |
|
41188 |
regexp-bytecode-peephole.h |
|
1011 |
regexp-bytecodes.cc |
|
1282 |
regexp-bytecodes.h |
bc8 |
17466 |
regexp-compiler-tonode.cc |
|
78511 |
regexp-compiler.cc |
|
155406 |
regexp-compiler.h |
|
23216 |
regexp-dotprinter.cc |
|
7803 |
regexp-dotprinter.h |
|
542 |
regexp-error.cc |
|
586 |
regexp-error.h |
|
3494 |
regexp-interpreter.cc |
|
41436 |
regexp-interpreter.h |
|
2849 |
regexp-macro-assembler-arch.h |
|
370 |
regexp-macro-assembler-tracer.cc |
|
14335 |
regexp-macro-assembler-tracer.h |
|
4500 |
regexp-macro-assembler.cc |
|
20625 |
regexp-macro-assembler.h |
|
16282 |
regexp-nodes.h |
|
31847 |
regexp-parser.cc |
|
106305 |
regexp-parser.h |
|
1055 |
regexp-stack.cc |
|
3352 |
regexp-stack.h |
|
5638 |
regexp.h |
|
9306 |
special-case.cc |
|
2643 |
special-case.h |
|
5360 |