#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/edit_distance.h"
#include "llvm/Support/Error.h"
#include <bitset>
usingnamespacellvm;
#ifndef _MSC_VER
constexpr size_t StringRef::npos;
#endif
static int ascii_strncasecmp(const char *LHS, const char *RHS, size_t Length) { … }
int StringRef::compare_insensitive(StringRef RHS) const { … }
bool StringRef::starts_with_insensitive(StringRef Prefix) const { … }
bool StringRef::ends_with_insensitive(StringRef Suffix) const { … }
size_t StringRef::find_insensitive(char C, size_t From) const { … }
int StringRef::compare_numeric(StringRef RHS) const { … }
unsigned StringRef::edit_distance(llvm::StringRef Other,
bool AllowReplacements,
unsigned MaxEditDistance) const { … }
unsigned llvm::StringRef::edit_distance_insensitive(
StringRef Other, bool AllowReplacements, unsigned MaxEditDistance) const { … }
std::string StringRef::lower() const { … }
std::string StringRef::upper() const { … }
size_t StringRef::find(StringRef Str, size_t From) const { … }
size_t StringRef::find_insensitive(StringRef Str, size_t From) const { … }
size_t StringRef::rfind_insensitive(char C, size_t From) const { … }
size_t StringRef::rfind(StringRef Str) const { … }
size_t StringRef::rfind_insensitive(StringRef Str) const { … }
StringRef::size_type StringRef::find_first_of(StringRef Chars,
size_t From) const { … }
StringRef::size_type StringRef::find_first_not_of(char C, size_t From) const { … }
StringRef::size_type StringRef::find_first_not_of(StringRef Chars,
size_t From) const { … }
StringRef::size_type StringRef::find_last_of(StringRef Chars,
size_t From) const { … }
StringRef::size_type StringRef::find_last_not_of(char C, size_t From) const { … }
StringRef::size_type StringRef::find_last_not_of(StringRef Chars,
size_t From) const { … }
void StringRef::split(SmallVectorImpl<StringRef> &A,
StringRef Separator, int MaxSplit,
bool KeepEmpty) const { … }
void StringRef::split(SmallVectorImpl<StringRef> &A, char Separator,
int MaxSplit, bool KeepEmpty) const { … }
size_t StringRef::count(StringRef Str) const { … }
static unsigned GetAutoSenseRadix(StringRef &Str) { … }
bool llvm::consumeUnsignedInteger(StringRef &Str, unsigned Radix,
unsigned long long &Result) { … }
bool llvm::consumeSignedInteger(StringRef &Str, unsigned Radix,
long long &Result) { … }
bool llvm::getAsUnsignedInteger(StringRef Str, unsigned Radix,
unsigned long long &Result) { … }
bool llvm::getAsSignedInteger(StringRef Str, unsigned Radix,
long long &Result) { … }
bool StringRef::consumeInteger(unsigned Radix, APInt &Result) { … }
bool StringRef::getAsInteger(unsigned Radix, APInt &Result) const { … }
bool StringRef::getAsDouble(double &Result, bool AllowInexact) const { … }
hash_code llvm::hash_value(StringRef S) { … }
unsigned DenseMapInfo<StringRef, void>::getHashValue(StringRef Val) { … }