Function cras::replace(const ::std::string&, const ::std::string&, const ::std::string&, const ::cras::ReplacePosition&)
Defined in File string_utils.hpp
Function Documentation
-
::std::string cras::replace(const ::std::string &str, const ::std::string &from, const ::std::string &to, const ::cras::ReplacePosition &where = ::cras::ReplacePosition::EVERYWHERE)
Replace all occurrences of
frominstrwithto.- Parameters:
str – [in] The string to replace in.
from – [in] The string to replace.
to – [in] The replacement.
where – [in] Where to do the replacement.
- Returns:
strwith all occurrences offromreplaced withto.