Coverage Report

Created: 2026-01-12 07:06

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
22.7M
{
18
22.7M
    switch (WC_CCS_SET(cc.ccs)) {
19
149k
    case WC_CCS_ISO_8859_6:
20
149k
  return iso88596_combining_map[cc.code & 0x7f];
21
1.23M
    case WC_CCS_ISO_8859_11:
22
1.23M
  return iso885911_combining_map[cc.code & 0x7f];
23
195
    case WC_CCS_CP864:
24
195
  return cp864_combining_map[cc.code & 0x7f];
25
198
    case WC_CCS_CP874:
26
198
  return cp874_combining_map[cc.code & 0x7f];
27
323
    case WC_CCS_CP1255:
28
323
  return cp1255_combining_map[cc.code & 0x7f];
29
196
    case WC_CCS_CP1256:
30
196
  return cp1256_combining_map[cc.code & 0x7f];
31
539k
    case WC_CCS_CP1258_1:
32
539k
  return cp1258_combining_map[cc.code & 0x7f];
33
2.48M
    case WC_CCS_TCVN_5712_1:
34
2.48M
  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
22.7M
#endif
41
22.7M
    }
42
18.3M
    return WC_FALSE;
43
22.7M
}