General Utility Library for C++17 26.5.0
replace.h
Go to the documentation of this file.
1
26#ifndef GUL17_REPLACE_H_
27#define GUL17_REPLACE_H_
28
29#include <string_view>
30#include <string>
31
32#include "gul17/internal.h"
33
34namespace gul17 {
35
52GUL_EXPORT
53std::string replace(std::string_view haystack, std::string_view needle, std::string_view hammer);
54
67GUL_EXPORT
68std::string& replace_inplace(std::string& haystack, std::string_view needle, std::string_view hammer);
69
71
72} // namespace gul17
73
74#endif
75
76/* 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:124
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:32
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:57
Definition of macros used internally by GUL.
Namespace gul17 contains all functions and classes of the General Utility Library.
Definition doxygen.h:29