Waitrud Weber’s blog

things and reminders for memories

Analyzer: windows-make: ensurance of times: we can use twice m_replace in simple.

We build the plan to check if m_replace is right or not.

1. Twice, we are going to use replace as different parameters in simple.

> winmain_001.exe
...
| a_c=0 a_f=3 c2|36||$|
i|17| c1|99|=|c| a_c=0 a_f=3 c2|36||$|
i|18| c1|99|=|c| a_c=0 a_f=3 c2|36||$|
i|19| c1|36|=|$| a_c=3 a_f=3 c2|49||1|
replace string k=|0|f|
replace string k=|1|f|
replace string k=|2|f|
replace string k=|3|f|
a_001 |aee<><></>eebbb
ccffff|
---

main.cpp  Tue Mar 16 07:57:16 2021

  1 :#include 
  2 :#include 
  3 :#include 
  4 :
  5 :#include "Print.h"
  6 :#include "array_counter.h"
  7 :#include "parse.h"
  8 :
  9 :#include "replace.h"
 10 :
 11 :int main () {
 12 :
 13 :	char* a_001 = (char*)"a$00<><></>$00bbb\r\ncc$01c";
 14 :	printf("a_001 |%s|\r\n", a_001);
 15 :	a_001 = m_replace ( a_001, (char*)"$00", (char*)"ee" );
 16 :	printf("a_001 |%s|\r\n", a_001);
 17 :	a_001 = m_replace ( a_001, (char*)"$01", (char*)"ffff" );
 18 :	printf("a_001 |%s|\r\n", a_001);
 19 :
 20 ://	int a = read_csv(".\\001-csv-20210210-001\.txt");
 21 ://	int b = replace_csv ( ".\\001-form-20210211-001\.txt");
 22 :
 23 :	return 0;
 24 :}
 25 :

https://github.com/WaitrudWeber/source_zip/blob/master/replace_20210316.zip