webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Namespaces | Enumerations | Functions
string_utils.h File Reference
#include <string>
#include <vector>
#include "common/Optional.h"

Go to the source code of this file.

Namespaces

 angle
 

Enumerations

enum  angle::WhitespaceHandling { angle::KEEP_WHITESPACE, angle::TRIM_WHITESPACE }
 
enum  angle::SplitResult { angle::SPLIT_WANT_ALL, angle::SPLIT_WANT_NONEMPTY }
 

Functions

std::vector< std::stringangle::SplitString (const std::string &input, const std::string &delimiters, WhitespaceHandling whitespace, SplitResult resultType)
 
void angle::SplitStringAlongWhitespace (const std::string &input, std::vector< std::string > *tokensOut)
 
std::string angle::TrimString (const std::string &input, const std::string &trimChars)
 
bool angle::HexStringToUInt (const std::string &input, unsigned int *uintOut)
 
bool angle::ReadFileToString (const std::string &path, std::string *stringOut)
 
Optional< std::vector< wchar_t > > angle::WidenString (size_t length, const char *cString)
 
bool angle::BeginsWith (const std::string &str, const char *prefix)
 
bool angle::BeginsWith (const char *str, const char *prefix)
 
bool angle::EndsWith (const std::string &str, const char *suffix)