General Utility Library for C++17 25.4.1
replace.h
Go to the documentation of this file.
1
23#ifndef GUL17_REPLACE_H_
24#define GUL17_REPLACE_H_
25
26#include <string_view>
27#include <string>
28
29#include "gul17/internal.h"
30
31namespace gul17 {
32
49GUL_EXPORT
50std::string replace(std::string_view haystack, std::string_view needle, std::string_view hammer);
51
64GUL_EXPORT
65std::string& replace_inplace(std::string& haystack, std::string_view needle, std::string_view hammer);
66
68
69} // namespace gul17
70
71#endif
72
73/* vim:set noexpandtab softtabstop=4 tabstop=4 shiftwidth=4 textwidth=90 cindent: */
auto constexpr bit_set(unsigned bit) noexcept -> ReturnT
Set a bit in an integral type.
Definition bit_manip.h:121
GUL_EXPORT std::string replace(std::string_view haystack, std::string_view needle, std::string_view hammer)
Replace all occurrences of a string within another string, returning the result as a std::string.
Definition replace.cc:29
GUL_EXPORT std::string & replace_inplace(std::string &haystack, std::string_view needle, std::string_view hammer)
Replace all occurrences of a string within another string in-place.
Definition replace.cc:54
Definition of macros used internally by GUL.
Namespace gul17 contains all functions and classes of the General Utility Library.
Definition doxygen.h:26