Coverage Report

Created: 2018-07-03 15:31

/home/travis/build/MoarVM/MoarVM/src/strings/unicode.h
Line
Count
Source
1
MVMint32 MVM_unicode_lookup_by_name(MVMThreadContext *tc, MVMString *name);
2
MVMint64 MVM_unicode_has_property_value(MVMThreadContext *tc, MVMGrapheme32 codepoint, MVMint64 property_code, MVMint64 property_value_code);
3
MVMuint32 MVM_unicode_get_case_change(MVMThreadContext *tc, MVMCodepoint codepoint, MVMint32 case_, const MVMCodepoint **result);
4
MVMint64 MVM_unicode_name_to_property_code(MVMThreadContext *tc, MVMString *name);
5
MVMint64 MVM_unicode_name_to_property_value_code(MVMThreadContext *tc, MVMint64 property_code, MVMString *name);
6
MVMint32 MVM_unicode_cname_to_property_value_code(MVMThreadContext *tc, MVMint64 property_code, const char *cname, size_t cname_length);
7
MVMCodepoint MVM_unicode_find_primary_composite(MVMThreadContext *tc, MVMCodepoint l, MVMCodepoint c);
8
9
128
#define MVM_unicode_case_change_type_upper 0
10
12.6k
#define MVM_unicode_case_change_type_lower 1
11
12
#define MVM_unicode_case_change_type_title 2
12
64.3k
#define MVM_unicode_case_change_type_fold  3
13
14
struct MVMUnicodeNameRegistry {
15
    char *name;
16
    MVMGrapheme32 codepoint;
17
    UT_hash_handle hash_handle;
18
};
19
struct MVMUnicodeGraphemeNameRegistry {
20
    char *name;
21
    MVMint32 structindex;
22
    UT_hash_handle hash_handle;
23
};
24
25
void MVM_unicode_init(MVMThreadContext *tc);
26
void MVM_unicode_release(MVMThreadContext *tc);