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 locale 18} // namespace sys 19} // namespace llvm 20