LLVM  4.0.0
Classes | Namespaces | Functions
StringExtras.h File Reference
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/DataTypes.h"
#include <iterator>
Include dependency graph for StringExtras.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  llvm::SmallVectorImpl< T >
 This class consists of common code factored out of the SmallVector class to reduce code duplication based on the SmallVector 'N' template parameter. More...
 

Namespaces

 llvm
 Compute iterated dominance frontiers using a linear time algorithm.
 
 llvm::detail
 Implementation details of the pass manager interfaces.
 

Functions

static char llvm::hexdigit (unsigned X, bool LowerCase=false)
 hexdigit - Return the hexadecimal character for the given number X (which should be less than 16). More...
 
static StringRef llvm::toStringRef (bool B)
 Construct a string ref from a boolean. More...
 
static unsigned llvm::hexDigitValue (char C)
 Interpret the given character C as a hexadecimal digit and return its value. More...
 
static std::string llvm::utohexstr (uint64_t X, bool LowerCase=false)
 
static std::string llvm::toHex (StringRef Input)
 Convert buffer Input to its hexadecimal representation. More...
 
static std::string llvm::utostr (uint64_t X, bool isNeg=false)
 
static std::string llvm::itostr (int64_t X)
 
StringRef::size_type llvm::StrInStrNoCase (StringRef s1, StringRef s2)
 StrInStrNoCase - Portable version of strcasestr. More...
 
std::pair< StringRef, StringRefllvm::getToken (StringRef Source, StringRef Delimiters=" \t\n\v\f\r")
 getToken - This function extracts one token from source, ignoring any leading characters that appear in the Delimiters string, and ending the token at any of the characters that appear in the Delimiters string. More...
 
void llvm::SplitString (StringRef Source, SmallVectorImpl< StringRef > &OutFragments, StringRef Delimiters=" \t\n\v\f\r")
 SplitString - Split up the specified string according to the specified delimiters, appending the result fragments to the output list. More...
 
static unsigned llvm::HashString (StringRef Str, unsigned Result=0)
 HashString - Hash function for strings. More...
 
static StringRef llvm::getOrdinalSuffix (unsigned Val)
 Returns the English suffix for an ordinal integer (-st, -nd, -rd, -th). More...
 
void llvm::PrintEscapedString (StringRef Name, raw_ostream &Out)
 PrintEscapedString - Print each character of the specified string, escaping it if it is not printable or if it is an escape char. More...
 
template<typename IteratorT >
std::string llvm::detail::join_impl (IteratorT Begin, IteratorT End, StringRef Separator, std::input_iterator_tag)
 
template<typename IteratorT >
std::string llvm::detail::join_impl (IteratorT Begin, IteratorT End, StringRef Separator, std::forward_iterator_tag)
 
template<typename Sep >
void llvm::detail::join_items_impl (std::string &Result, Sep Separator)
 
template<typename Sep , typename Arg >
void llvm::detail::join_items_impl (std::string &Result, Sep Separator, const Arg &Item)
 
template<typename Sep , typename Arg1 , typename... Args>
void llvm::detail::join_items_impl (std::string &Result, Sep Separator, const Arg1 &A1, Args &&...Items)
 
size_t llvm::detail::join_one_item_size (char C)
 
size_t llvm::detail::join_one_item_size (const char *S)
 
template<typename T >
size_t llvm::detail::join_one_item_size (const T &Str)
 
size_t llvm::detail::join_items_size ()
 
template<typename A1 >
size_t llvm::detail::join_items_size (const A1 &A)
 
template<typename A1 , typename... Args>
size_t llvm::detail::join_items_size (const A1 &A, Args &&...Items)
 
template<typename IteratorT >
std::string llvm::join (IteratorT Begin, IteratorT End, StringRef Separator)
 Joins the strings in the range [Begin, End), adding Separator between the elements. More...
 
template<typename Sep , typename... Args>
std::string llvm::join_items (Sep Separator, Args &&...Items)
 Joins the strings in the parameter pack Items, adding Separator between the elements. More...