Loading...
Searching...
No Matches
awkward::util Namespace Reference

Classes

class  array_deleter
 Used as a std::shared_ptr deleter (second argument) to overload delete ptr with delete[] ptr. More...
 

Functions

EXPORT_SYMBOL const std::string dtype_to_name (dtype dt)
 Returns the name associated with a given dtype.
 
EXPORT_SYMBOL const std::string dtype_to_format (dtype dt, const std::string &format="")
 Convert a dtype enum into a NumPy format string.
 
std::string quote (const std::string &x)
 Puts quotation marks around a string and escapes the appropriate characters.
 

Function Documentation

◆ dtype_to_format()

EXPORT_SYMBOL const std::string dtype_to_format ( dtype dt,
const std::string & format = "" )

Convert a dtype enum into a NumPy format string.

◆ dtype_to_name()

EXPORT_SYMBOL const std::string dtype_to_name ( dtype dt)

Returns the name associated with a given dtype.

◆ quote()

std::string quote ( const std::string & x)

Puts quotation marks around a string and escapes the appropriate characters.

Parameters
xThe string to quote.
doublequoteIf true, apply double-quotes ("</tt>); if <tt>false</tt>, apply single-quotes (&lsquo;&rsquo;`). @note The implementation does not yet escape characters: it only adds strings. See issue <a href="https://github.com/scikit-hep/awkward/issues/186" >scikit-hep/awkward#186.