33 size_t i = input.find(gone,0);
34 while(i!=string::npos) {
36 input.replace(i,gone.size(),it);
37 i = input.find(gone,i+(multiple ? 0 : it.size()));
46 char* buf =
new char[s.length()];
47 s.copy(buf, s.length());
48 for(
unsigned i = 0;
i < s.length();
i++)
49 buf[
i] = toupper(buf[
i]);
50 string r(buf, s.length());
61 char* buf =
new char[s.length()];
62 s.copy(buf, s.length());
63 for(
unsigned i = 0;
i < s.length();
i++)
64 buf[
i] = tolower(buf[
i]);
65 string r(buf, s.length());
static std::string lowerCase(const std::string &s)
static std::string upperCase(const std::string &s)
static int replace(std::string &input, const std::string &gone, const std::string &it, bool multiple)