MCPcopy Create free account
hub / github.com/TheWaveWarden/odin2 / mask_string

Function mask_string

scripts/fix_conversion_errors.cpp:9–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#define DBG(text) std::cout << text << std::endl
8
9std::string mask_string(const std::string &p_content, const std::string &p_mask)
10{
11 size_t end = p_content.size();
12 end = p_mask.size() < end ? p_mask.size() : end;
13
14 std::string ret;
15
16 for (int pos = 0; pos < end; ++pos)
17 {
18 if (p_mask[pos] != ' ')
19 {
20 ret += p_content[pos];
21 }
22 }
23
24 return ret;
25}
26
27int main()
28{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected