gen-regexp-special-case.cc |
|
6062 |
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 |
|
12211 |
regexp-ast.h |
|
25645 |
regexp-bytecode-generator-inl.h |
|
1666 |
regexp-bytecode-generator.cc |
|
13220 |
regexp-bytecode-generator.h |
|
6545 |
regexp-bytecode-peephole.cc |
|
41285 |
regexp-bytecode-peephole.h |
|
1040 |
regexp-bytecodes.cc |
|
1331 |
regexp-bytecodes.h |
bc8 |
17512 |
regexp-compiler-tonode.cc |
|
79276 |
regexp-compiler.cc |
|
162187 |
regexp-compiler.h |
|
23312 |
regexp-dotprinter.cc |
|
7957 |
regexp-dotprinter.h |
|
542 |
regexp-error.cc |
|
586 |
regexp-error.h |
|
3418 |
regexp-interpreter.cc |
|
43676 |
regexp-interpreter.h |
|
3196 |
regexp-macro-assembler-arch.h |
|
370 |
regexp-macro-assembler-tracer.cc |
|
15711 |
regexp-macro-assembler-tracer.h |
|
4854 |
regexp-macro-assembler.cc |
|
20658 |
regexp-macro-assembler.h |
|
16498 |
regexp-nodes.h |
|
33066 |
regexp-parser.cc |
|
111578 |
regexp-parser.h |
|
1101 |
regexp-stack.cc |
|
3305 |
regexp-stack.h |
|
6165 |
regexp.h |
AtomRegExpData |
11353 |
special-case.cc |
|
2051 |
special-case.h |
|
4748 |