LLVM 20.0.0git
Classes | Namespaces | Enumerations | Functions
Unicode.h File Reference
#include "llvm/ADT/SmallString.h"
#include <optional>
#include <string>

Go to the source code of this file.

Classes

struct  llvm::sys::unicode::LooseMatchingResult
 
struct  llvm::sys::unicode::MatchForCodepointName
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::sys
 
namespace  llvm::sys::unicode
 

Enumerations

enum  llvm::sys::unicode::ColumnWidthErrors { llvm::sys::unicode::ErrorInvalidUTF8 = -2 , llvm::sys::unicode::ErrorNonPrintableCharacter = -1 }
 

Functions

bool llvm::sys::unicode::isPrintable (int UCS)
 Determines if a character is likely to be displayed correctly on the terminal.
 
bool llvm::sys::unicode::isFormatting (int UCS)
 Unicode code points of the Cf category are considered formatting characters.
 
int llvm::sys::unicode::columnWidthUTF8 (StringRef Text)
 Gets the number of positions the UTF8-encoded Text is likely to occupy when output on a terminal ("character width").
 
int llvm::sys::unicode::foldCharSimple (int C)
 Fold input unicode character according the Simple unicode case folding rules.
 
std::optional< char32_t > llvm::sys::unicode::nameToCodepointStrict (StringRef Name)
 Maps the name or the alias of a Unicode character to its associated codepoints.
 
std::optional< LooseMatchingResult > llvm::sys::unicode::nameToCodepointLooseMatching (StringRef Name)
 
SmallVector< MatchForCodepointName > llvm::sys::unicode::nearestMatchesForCodepointName (StringRef Pattern, std::size_t MaxMatchesCount)