This uses the new layout of the upstream repository, which was recently migrated to GitHub, and converted into a "monorepo". That is, most of the earlier separate sub-projects with their own branches and tags were consolidated into one top-level directory, and are now branched and tagged together. Updating the vendor area to match this layout is next.
20 lines
377 B
C++
20 lines
377 B
C++
#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
|