Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
Helpers.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5namespace API
6{
7 __forceinline std::string ReplaceString(std::string subject, const std::string& search, const std::string& replace)
8 {
9 size_t pos = 0;
10 while ((pos = subject.find(search, pos)) != std::string::npos)
11 {
12 subject.replace(pos, search.length(), replace);
13 pos += replace.length();
14 }
15
16 return subject;
17 }
18} // namespace API
Definition IBaseApi.h:9
__forceinline std::string ReplaceString(std::string subject, const std::string &search, const std::string &replace)
Definition Helpers.h:7
Definition json.hpp:4518