Files
core_zero/tjp/core/string/replaced.cpp
Timothy Prepscius 996151a56a flatten 20260225
2026-02-25 12:43:06 -05:00

24 lines
546 B
C++
Executable File

// License: Modified MIT (NON-AI)
// See the LICENSE file in the root directory for license information.
// Copyright 2025 Timothy Prepscius
#include "replace.h"
#include "replaced.h"
#include <string>
namespace tjp::core {
String replacedFirst(const StringView & str, const StringView& from, const StringView& to) {
auto s = String(str);
replace(s, from, to);
return s;
}
String replaced(const StringView & str, const StringView& from, const StringView& to) {
auto s = String(str);
replaceAll(s, from, to);
return s;
}
} // namespace