brintos

brintos / llvm-project-archived public Read only

0
0
Text · 377 B · 1b3300b Raw
20 lines · cpp
1#include "llvm/Support/Locale.h"2#include "llvm/ADT/StringRef.h"3#include "llvm/Support/Unicode.h"4 5namespace llvm {6namespace sys {7namespace locale {8 9int columnWidth(StringRef Text) {10  return llvm::sys::unicode::columnWidthUTF8(Text);11}12 13bool isPrint(int UCS) {14  return llvm::sys::unicode::isPrintable(UCS);15}16 17} // namespace locale18} // namespace sys19} // namespace llvm20