Home | Develop | Download | Contact
example_ra_string_replace.cpp
1
20#include <iostream>
21#include <Pds/Ra>
22
23
24int main(void)
25{
26 std::string str;
27
28 str=" texto1 fernando text2 texto3 fernando texto4";
29 std::cout<<str<<std::endl;
30 std::cout<<Pds::Ra::ReplaceAll(str,"fernando","el")<<std::endl;
31
32 return 0;
33}
std::string ReplaceAll(std::string str, const std::string &from, const std::string &to)
Remplaza todas las cadenas desde from a to.

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed