Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/js/src/irregexp/RegExpCharacters-inl.h
Line
Count
Source (jump to first uncovered line)
1
/* Generated by make_unicode.py DO NOT MODIFY */
2
/* Unicode version: 11.0.0 */
3
#ifndef V8_JSREGEXPCHARACTERS_INL_H_
4
#define V8_JSREGEXPCHARACTERS_INL_H_
5
6
namespace js {
7
8
namespace irregexp {
9
10
static inline bool
11
RangeContainsLatin1Equivalents(CharacterRange range, bool unicode)
12
0
{
13
0
    if (unicode) {
14
0
        // "LATIN SMALL LETTER LONG S" case folds to "LATIN SMALL LETTER S".
15
0
        if (range.Contains(0x017F)) {
16
0
            return true;
17
0
        }
18
0
        // "LATIN CAPITAL LETTER SHARP S" case folds to "LATIN SMALL LETTER SHARP S".
19
0
        if (range.Contains(0x1E9E)) {
20
0
            return true;
21
0
        }
22
0
        // "KELVIN SIGN" case folds to "LATIN SMALL LETTER K".
23
0
        if (range.Contains(0x212A)) {
24
0
            return true;
25
0
        }
26
0
        // "ANGSTROM SIGN" case folds to "LATIN SMALL LETTER A WITH RING ABOVE".
27
0
        if (range.Contains(0x212B)) {
28
0
            return true;
29
0
        }
30
0
    }
31
0
32
0
    // "GREEK CAPITAL LETTER MU" case maps to "MICRO SIGN".
33
0
    // "GREEK SMALL LETTER MU" case maps to "MICRO SIGN".
34
0
    if (range.Contains(0x039C) || range.Contains(0x03BC)) {
35
0
        return true;
36
0
    }
37
0
    // "LATIN CAPITAL LETTER Y WITH DIAERESIS" case maps to "LATIN SMALL LETTER Y WITH DIAERESIS".
38
0
    if (range.Contains(0x0178)) {
39
0
        return true;
40
0
    }
41
0
    return false;
42
0
}
43
44
} } // namespace js::irregexp
45
46
#endif // V8_JSREGEXPCHARACTERS_INL_H_