blob: 1b3300b90f2a3bf701dbadcc33b7e0789d9461d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "llvm/Support/Locale.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Unicode.h"
namespace llvm {
namespace sys {
namespace locale {
int columnWidth(StringRef Text) {
return llvm::sys::unicode::columnWidthUTF8(Text);
}
bool isPrint(int UCS) {
return llvm::sys::unicode::isPrintable(UCS);
}
} // namespace locale
} // namespace sys
} // namespace llvm
|