LLVM: include/llvm/Support/Unicode.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14#ifndef LLVM_SUPPORT_UNICODE_H
15#define LLVM_SUPPORT_UNICODE_H
16
19#include
20#include
21
22namespace llvm {
24
25namespace sys {
27
32
33
34
35
36
37
38
39
41
42
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
60
61
62
64
65
66
67
68
69
70
72
77
78LLVM_ABI std::optional
80
86
89
90}
91}
92}
93
94#endif
This file defines the SmallString class.
SmallString - A SmallString is just a SmallVector with methods and accessors that make it work better...
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
StringRef - Represent a constant reference to a string, i.e.
@ C
The default llvm calling convention, compatible with C.
ColumnWidthErrors
Definition Unicode.h:28
@ ErrorInvalidUTF8
Definition Unicode.h:29
@ ErrorNonPrintableCharacter
Definition Unicode.h:30
LLVM_ABI int foldCharSimple(int C)
Fold input unicode character according the Simple unicode case folding rules.
LLVM_ABI std::optional< char32_t > nameToCodepointStrict(StringRef Name)
Maps the name or the alias of a Unicode character to its associated codepoints.
LLVM_ABI SmallVector< MatchForCodepointName > nearestMatchesForCodepointName(StringRef Pattern, std::size_t MaxMatchesCount)
LLVM_ABI int columnWidthUTF8(StringRef Text)
Gets the number of positions the UTF8-encoded Text is likely to occupy when output on a terminal ("ch...
LLVM_ABI std::optional< LooseMatchingResult > nameToCodepointLooseMatching(StringRef Name)
LLVM_ABI bool isFormatting(int UCS)
Unicode code points of the Cf category are considered formatting characters.
LLVM_ABI bool isPrintable(int UCS)
Determines if a character is likely to be displayed correctly on the terminal.
This is an optimization pass for GlobalISel generic memory operations.
SmallString< 64 > Name
Definition Unicode.h:75
char32_t CodePoint
Definition Unicode.h:74
uint32_t Distance
Definition Unicode.h:83
char32_t Value
Definition Unicode.h:84
std::string Name
Definition Unicode.h:82