1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/lib/Support/Locale.cpp

20 lines
377 B
C++
Raw Normal View History

#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