Changeset View
Changeset View
Standalone View
Standalone View
src/CharacterWidth.cpp
Show All 36 Lines | |||||
37 | #include "konsoleprivate_export.h" | 37 | #include "konsoleprivate_export.h" | ||
38 | 38 | | |||
39 | 39 | | |||
40 | struct Range { | 40 | struct Range { | ||
41 | uint first, last; | 41 | uint first, last; | ||
42 | }; | 42 | }; | ||
43 | 43 | | |||
44 | struct RangeLut { | 44 | struct RangeLut { | ||
45 | int size; | ||||
45 | int8_t width; | 46 | int8_t width; | ||
46 | const Range * const lut; | 47 | const Range * const lut; | ||
47 | int size; | | |||
48 | }; | 48 | }; | ||
49 | 49 | | |||
50 | enum { | 50 | enum { | ||
51 | InvalidWidth = INT8_MIN | 51 | InvalidWidth = INT8_MIN | ||
52 | }; | 52 | }; | ||
53 | 53 | | |||
54 | 54 | | |||
55 | static constexpr const int8_t DIRECT_LUT[] = { | 55 | static constexpr const int8_t DIRECT_LUT[] = { | ||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |