LLVM 22.0.0git
Unicode.h File Reference
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/Compiler.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

LLVM_ABI bool llvm::sys::unicode::isPrintable (int UCS)
 Determines if a character is likely to be displayed correctly on the terminal.
LLVM_ABI bool llvm::sys::unicode::isFormatting (int UCS)
 Unicode code points of the Cf category are considered formatting characters.
LLVM_ABI 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").
LLVM_ABI int llvm::sys::unicode::foldCharSimple (int C)
 Fold input unicode character according the Simple unicode case folding rules.
LLVM_ABI std::optional< char32_t > llvm::sys::unicode::nameToCodepointStrict (StringRef Name)
 Maps the name or the alias of a Unicode character to its associated codepoints.
LLVM_ABI std::optional< LooseMatchingResultllvm::sys::unicode::nameToCodepointLooseMatching (StringRef Name)
LLVM_ABI SmallVector< MatchForCodepointNamellvm::sys::unicode::nearestMatchesForCodepointName (StringRef Pattern, std::size_t MaxMatchesCount)