LLVM 19.0.0git
Classes | Namespaces | Functions
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 <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

bool llvm::getAsUnsignedInteger (StringRef Str, unsigned Radix, unsigned long long &Result)
 Helper functions for StringRef::getAsInteger.
 
bool llvm::getAsSignedInteger (StringRef Str, unsigned Radix, long long &Result)
 
bool llvm::consumeUnsignedInteger (StringRef &Str, unsigned Radix, unsigned long long &Result)
 
bool llvm::consumeSignedInteger (StringRef &Str, unsigned Radix, long long &Result)
 
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)