xref: /freebsd/contrib/llvm-project/llvm/lib/Support/Locale.cpp (revision e8d8bef961a50d4dc22501cde4fb9fb0be1b2532)
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