New library for characters

This commit is contained in:
Gustavo Carneiro
2020-10-12 03:59:59 -03:00
committed by Kurt Hindenburg
parent b9bbbdba1f
commit a08f907c41
4 changed files with 16 additions and 9 deletions

View File

@@ -44,8 +44,7 @@
//
#include "CharacterWidth.h"
#include "konsoledebug.h"
#include "konsoleprivate_export.h"
#include "konsolecharacters_export.h"
struct Range {
@@ -79,7 +78,7 @@ static constexpr const RangeLut RANGE_LUT_LIST[] = {«ranges-lut-list:
static constexpr const int RANGE_LUT_LIST_SIZE = «ranges-lut-list-size»;
int KONSOLEPRIVATE_EXPORT characterWidth(uint ucs4) {
int KONSOLECHARACTERS_EXPORT characterWidth(uint ucs4) {
if(Q_LIKELY(ucs4 < sizeof(DIRECT_LUT))) {
return DIRECT_LUT[ucs4];
}