proxygen
String.h File Reference
#include <cstdarg>
#include <exception>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <folly/Conv.h>
#include <folly/ExceptionString.h>
#include <folly/FBString.h>
#include <folly/FBVector.h>
#include <folly/Portability.h>
#include <folly/Range.h>
#include <folly/ScopeGuard.h>
#include <folly/Traits.h>
#include <folly/String-inl.h>

Go to the source code of this file.

Classes

struct  folly::detail::IsConvertible< Void, OutputType >
 
struct  folly::detail::IsConvertible< void, decltype(std::ignore)>
 
struct  folly::detail::OutputType< OutputType >
 
struct  folly::IsConvertible< OutputType >
 

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 
 folly::detail
 

Macros

#define FOLLY_STRING_H_
 

Enumerations

enum  folly::UriEscapeMode : unsigned char { folly::UriEscapeMode::ALL = 0, folly::UriEscapeMode::QUERY = 1, folly::UriEscapeMode::PATH = 2 }
 
enum  folly::PrettyType {
  folly::PRETTY_TIME, folly::PRETTY_TIME_HMS, folly::PRETTY_BYTES_METRIC, folly::PRETTY_BYTES_BINARY,
  folly::PRETTY_BYTES = PRETTY_BYTES_BINARY, folly::PRETTY_BYTES_BINARY_IEC, folly::PRETTY_BYTES_IEC = PRETTY_BYTES_BINARY_IEC, folly::PRETTY_UNITS_METRIC,
  folly::PRETTY_UNITS_BINARY, folly::PRETTY_UNITS_BINARY_IEC, folly::PRETTY_SI, folly::PRETTY_NUM_TYPES
}
 

Functions

std::string folly::toStdString (const folly::fbstring &s)
 
const std::stringfolly::toStdString (const std::string &s)
 
std::string && folly::toStdString (std::string &&s)
 
template<class String >
void folly::cEscape (StringPiece str, String &out)
 
template<class String >
String folly::cEscape (StringPiece str)
 
template<class String >
void folly::cUnescape (StringPiece str, String &out, bool strict)
 
template<class String >
String folly::cUnescape (StringPiece str, bool strict=true)
 
template<class String >
void folly::uriEscape (StringPiece str, String &out, UriEscapeMode mode)
 
template<class String >
String folly::uriEscape (StringPiece str, UriEscapeMode mode=UriEscapeMode::ALL)
 
template<class String >
void folly::uriUnescape (StringPiece str, String &out, UriEscapeMode mode)
 
template<class String >
String folly::uriUnescape (StringPiece str, UriEscapeMode mode=UriEscapeMode::ALL)
 
std::string folly::stringPrintf (FOLLY_PRINTF_FORMAT const char *format,...) FOLLY_PRINTF_FORMAT_ATTR(1
 
std::string void folly::stringPrintf (std::string *out, FOLLY_PRINTF_FORMAT const char *fmt,...) FOLLY_PRINTF_FORMAT_ATTR(2
 
std::string void std::stringfolly::stringAppendf (std::string *output, FOLLY_PRINTF_FORMAT const char *format,...) FOLLY_PRINTF_FORMAT_ATTR(2
 
std::string folly::stringVPrintf (const char *format, va_list ap)
 
void folly::stringVPrintf (std::string *output, const char *format, va_list ap)
 
std::stringfolly::stringVAppendf (std::string *output, const char *format, va_list ap)
 
template<class OutputString >
void folly::backslashify (folly::StringPiece input, OutputString &output, bool hex_style)
 
template<class OutputString = std::string>
OutputString folly::backslashify (StringPiece input, bool hex_style=false)
 
template<class String1 , class String2 >
void folly::humanify (const String1 &input, String2 &output)
 
template<class String >
String folly::humanify (const String &input)
 
template<class InputString , class OutputString >
bool folly::hexlify (const InputString &input, OutputString &output, bool append_output)
 
template<class OutputString = std::string>
OutputString folly::hexlify (ByteRange input)
 
template<class OutputString = std::string>
OutputString folly::hexlify (StringPiece input)
 
template<class InputString , class OutputString >
bool folly::unhexlify (const InputString &input, OutputString &output)
 
template<class OutputString = std::string>
OutputString folly::unhexlify (StringPiece input)
 
std::string folly::prettyPrint (double val, PrettyType type, bool addSpace)
 
double folly::prettyToDouble (folly::StringPiece *const prettyString, const PrettyType type)
 
double folly::prettyToDouble (folly::StringPiece prettyString, const PrettyType type)
 
template<class OutIt >
void folly::hexDump (const void *ptr, size_t size, OutIt out)
 
std::string folly::hexDump (const void *ptr, size_t size)
 
fbstring folly::errnoStr (int err)
 
template<class Delim , class String , class OutputType >
void folly::split (const Delim &delimiter, const String &input, std::vector< OutputType > &out, bool ignoreEmpty)
 
template<class Delim , class String , class OutputType >
void folly::split (const Delim &delimiter, const String &input, fbvector< OutputType > &out, bool ignoreEmpty)
 
template<class OutputValueType , class Delim , class String , class OutputIterator >
void folly::splitTo (const Delim &delimiter, const String &input, OutputIterator out, bool ignoreEmpty)
 
template<bool exact, class Delim , class... OutputTypes>
bool::type folly::split (const Delim &delimiter, StringPiece input, OutputTypes &...outputs)
 
template<class Delim , class Iterator , class String >
void folly::join (const Delim &delimiter, Iterator begin, Iterator end, String &output)
 
template<class Delim , class Container , class String >
void folly::join (const Delim &delimiter, const Container &container, String &output)
 
template<class Delim , class Value , class String >
void folly::join (const Delim &delimiter, const std::initializer_list< Value > &values, String &output)
 
template<class Delim , class Container >
std::string folly::join (const Delim &delimiter, const Container &container)
 
template<class Delim , class Value >
std::string folly::join (const Delim &delimiter, const std::initializer_list< Value > &values)
 
template<class Delim , class Iterator , typename std::enable_if< std::is_base_of< std::forward_iterator_tag, typename std::iterator_traits< Iterator >::iterator_category >::value >::type * = nullptr>
std::string folly::join (const Delim &delimiter, Iterator begin, Iterator end)
 
StringPiece folly::ltrimWhitespace (StringPiece sp)
 
StringPiece folly::rtrimWhitespace (StringPiece sp)
 
StringPiece folly::trimWhitespace (StringPiece sp)
 
StringPiece folly::skipWhitespace (StringPiece sp)
 
std::string folly::stripLeftMargin (std::string s)
 
void folly::toLowerAscii (char *str, size_t length)
 
void folly::toLowerAscii (MutableStringPiece str)
 
void folly::toLowerAscii (std::string &str)
 

Macro Definition Documentation

#define FOLLY_STRING_H_

Definition at line 18 of file String.h.