LLVM 22.0.0git
StringRef.h File Reference
#include "llvm/ADT/DenseMapInfo.h"
#include "llvm/ADT/STLFunctionalExtras.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/Support/Compiler.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstring>
#include <iterator>
#include <limits>
#include <string>
#include <string_view>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

class  llvm::StringRef
 StringRef - Represent a constant reference to a string, i.e. More...
class  llvm::StringLiteral
 A wrapper around a string literal that serves as a proxy for constructing global tables of StringRefs with the length computed at compile time. More...
struct  llvm::DenseMapInfo< StringRef, void >

Namespaces

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

Functions

LLVM_ABI bool llvm::getAsUnsignedInteger (StringRef Str, unsigned Radix, unsigned long long &Result)
 Helper functions for StringRef::getAsInteger.
LLVM_ABI bool llvm::getAsSignedInteger (StringRef Str, unsigned Radix, long long &Result)
LLVM_ABI unsigned llvm::getAutoSenseRadix (StringRef &Str)
LLVM_ABI bool llvm::consumeUnsignedInteger (StringRef &Str, unsigned Radix, unsigned long long &Result)
LLVM_ABI bool llvm::consumeSignedInteger (StringRef &Str, unsigned Radix, long long &Result)
LLVM_ABI hash_code llvm::hash_value (StringRef S)
 Compute a hash_code for a StringRef.
StringRef Comparison Operators
bool llvm::operator== (StringRef LHS, StringRef RHS)
bool llvm::operator!= (StringRef LHS, StringRef RHS)
bool llvm::operator< (StringRef LHS, StringRef RHS)
bool llvm::operator<= (StringRef LHS, StringRef RHS)
bool llvm::operator> (StringRef LHS, StringRef RHS)
bool llvm::operator>= (StringRef LHS, StringRef RHS)
std::string & llvm::operator+= (std::string &buffer, StringRef string)