LLVM
15.0.0git
lib
Support
Locale.cpp
Go to the documentation of this file.
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
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:17
StringRef.h
llvm::sys::locale::columnWidth
int columnWidth(StringRef s)
Definition:
Locale.cpp:9
llvm::sys::locale::isPrint
bool isPrint(int c)
Definition:
Locale.cpp:13
llvm::sys::unicode::columnWidthUTF8
int columnWidthUTF8(StringRef Text)
Gets the number of positions the UTF8-encoded Text is likely to occupy when output on a terminal ("ch...
Definition:
Unicode.cpp:344
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition:
StringRef.h:58
Unicode.h
Locale.h
llvm::sys::unicode::isPrintable
bool isPrintable(int UCS)
Determines if a character is likely to be displayed correctly on the terminal.
Definition:
Unicode.cpp:22
Generated on Tue Jun 28 2022 03:37:24 for LLVM by
1.8.17