hpx/util/sed_transform.hpp#

See Public API for a list of names and headers that are part of the public HPX API.

namespace hpx
namespace util

Functions

bool parse_sed_expression(std::string const &input, std::string &search, std::string &replace)#

Parse a sed command.

Note

Currently, only supports search and replace syntax (s/search/replace/)

Parameters
  • input – [in] The content to parse.

  • search – [out] If the parsing is successful, this string is set to the search expression.

  • search – [out] If the parsing is successful, this string is set to the replace expression.

Returns

true if the parsing was successful, false otherwise.

struct sed_transform#
#include <sed_transform.hpp>

An unary function object which applies a sed command to its subject and returns the resulting string.

Note

Currently, only supports search and replace syntax (s/search/replace/)

Public Functions

sed_transform(std::string const &search, std::string const &replace)#
sed_transform(std::string const &expression)#
std::string operator()(std::string const &input) const#
inline explicit operator bool() const noexcept#
inline bool operator!() const#

Private Members

std::shared_ptr<command> command_#