Coverage Report

Created: 2026-05-30 06:08

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
29.8M
{
18
29.8M
    switch (WC_CCS_SET(cc.ccs)) {
19
54.1k
    case WC_CCS_ISO_8859_6:
20
54.1k
  return iso88596_combining_map[cc.code & 0x7f];
21
2.20M
    case WC_CCS_ISO_8859_11:
22
2.20M
  return iso885911_combining_map[cc.code & 0x7f];
23
533
    case WC_CCS_CP864:
24
533
  return cp864_combining_map[cc.code & 0x7f];
25
732k
    case WC_CCS_CP874:
26
732k
  return cp874_combining_map[cc.code & 0x7f];
27
226
    case WC_CCS_CP1255:
28
226
  return cp1255_combining_map[cc.code & 0x7f];
29
110
    case WC_CCS_CP1256:
30
110
  return cp1256_combining_map[cc.code & 0x7f];
31
3.08M
    case WC_CCS_CP1258_1:
32
3.08M
  return cp1258_combining_map[cc.code & 0x7f];
33
4.97M
    case WC_CCS_TCVN_5712_1:
34
4.97M
  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
29.8M
#endif
41
29.8M
    }
42
18.7M
    return WC_FALSE;
43
29.8M
}