OmniSciDB  c07336695a
CmdStringUtilities Class Reference

#include <CommandFunctors.h>

Static Public Member Functions

static bool replace (std::string &str, const std::string &from, const std::string &to)
 

Detailed Description

Definition at line 138 of file CommandFunctors.h.

Member Function Documentation

◆ replace()

static bool CmdStringUtilities::replace ( std::string &  str,
const std::string &  from,
const std::string &  to 
)
inlinestatic

Definition at line 140 of file CommandFunctors.h.

140  {
141  size_t start_pos = str.find(from);
142  if (start_pos == std::string::npos) {
143  return false;
144  }
145  str.replace(start_pos, from.length(), to);
146  return true;
147  }

The documentation for this class was generated from the following file: