v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
utils.cc File Reference
#include "src/torque/utils.h"
#include <algorithm>
#include <fstream>
#include <iostream>
#include <optional>
#include <string>
#include "src/base/bits.h"
#include "src/base/logging.h"
#include "src/torque/ast.h"
#include "src/torque/constants.h"
#include "src/torque/declarable.h"
Include dependency graph for utils.cc:

Go to the source code of this file.

Namespaces

namespace  v8
 
namespace  v8::internal
 
namespace  v8::internal::torque
 

Functions

std::string v8::internal::torque::StringLiteralUnquote (const std::string &s)
 
std::string v8::internal::torque::StringLiteralQuote (const std::string &s)
 
static int v8::internal::torque::HexCharToInt (unsigned char c)
 
std::optional< std::string > v8::internal::torque::FileUriDecode (const std::string &uri)
 
bool v8::internal::torque::IsLowerCamelCase (const std::string &s)
 
bool v8::internal::torque::IsUpperCamelCase (const std::string &s)
 
bool v8::internal::torque::IsSnakeCase (const std::string &s)
 
bool v8::internal::torque::IsValidNamespaceConstName (const std::string &s)
 
bool v8::internal::torque::IsValidTypeName (const std::string &s)
 
std::string v8::internal::torque::CapifyStringWithUnderscores (const std::string &camellified_string)
 
std::string v8::internal::torque::CamelifyString (const std::string &underscore_string)
 
std::string v8::internal::torque::SnakeifyString (const std::string &camel_string)
 
std::string v8::internal::torque::DashifyString (const std::string &underscore_string)
 
std::string v8::internal::torque::UnderlinifyPath (std::string path)
 
bool v8::internal::torque::StartsWithSingleUnderscore (const std::string &str)
 
void v8::internal::torque::ReplaceFileContentsIfDifferent (const std::string &file_path, const std::string &contents)
 
std::ostream & v8::internal::torque::operator<< (std::ostream &os, const ResidueClass &a)
 

Variables

static const char v8::internal::torque::kFileUriPrefix [] = "file://"
 
static const int v8::internal::torque::kFileUriPrefixLength = sizeof(kFileUriPrefix) - 1