Coverage Report

Created: 2025-10-10 06:21

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/w3m/libwc/combining.c
Line
Count
Source
1
2
#include "wc.h"
3
#ifdef USE_UNICODE
4
#include "ucs.h"
5
#endif
6
#include "map/iso88596_combining.map"
7
#include "map/iso885911_combining.map"
8
#include "map/cp864_combining.map"
9
#include "map/cp874_combining.map"
10
#include "map/cp1255_combining.map"
11
#include "map/cp1256_combining.map"
12
#include "map/cp1258_combining.map"
13
#include "map/tcvn5712_combining.map"
14
15
wc_bool
16
wc_is_combining(wc_wchar_t cc)
17
17.6M
{
18
17.6M
    switch (WC_CCS_SET(cc.ccs)) {
19
5.40k
    case WC_CCS_ISO_8859_6:
20
5.40k
  return iso88596_combining_map[cc.code & 0x7f];
21
1.17M
    case WC_CCS_ISO_8859_11:
22
1.17M
  return iso885911_combining_map[cc.code & 0x7f];
23
37.5k
    case WC_CCS_CP864:
24
37.5k
  return cp864_combining_map[cc.code & 0x7f];
25
840
    case WC_CCS_CP874:
26
840
  return cp874_combining_map[cc.code & 0x7f];
27
195
    case WC_CCS_CP1255:
28
195
  return cp1255_combining_map[cc.code & 0x7f];
29
196
    case WC_CCS_CP1256:
30
196
  return cp1256_combining_map[cc.code & 0x7f];
31
3.70k
    case WC_CCS_CP1258_1:
32
3.70k
  return cp1258_combining_map[cc.code & 0x7f];
33
679k
    case WC_CCS_TCVN_5712_1:
34
679k
  return tcvn5712_combining_map[cc.code & 0x7f];
35
0
#ifdef USE_UNICODE
36
0
    case WC_CCS_UCS2:
37
0
    case WC_CCS_UCS4:
38
0
    case WC_CCS_UCS_TAG:
39
0
  return wc_is_ucs_combining(cc.code);
40
17.6M
#endif
41
17.6M
    }
42
15.7M
    return WC_FALSE;
43
17.6M
}