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