Function lbcrypto::replaceChar

Function Documentation

std::string lbcrypto::replaceChar(std::string str, char in, char out)

Auxiliary function to replace a specific character “in” with another character “out”

Parameters
  • str – string where in which characters are replaced

  • in – character being replaced

  • out – character to be replaced with

Returns

the modified string.