mirror of
https://github.com/KDE/konsole.git
synced 2026-06-09 22:45:03 -04:00
New library for characters
This commit is contained in:
committed by
Kurt Hindenburg
parent
b9bbbdba1f
commit
a08f907c41
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user