MCPcopy Create free account
hub / github.com/devosoft/avida / ReadString

Method ReadString

avida-core/source/cpu/cCodeLabel.cc:37–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37void cCodeLabel::ReadString(const cString& label_str)
38{
39 cString lbl(label_str);
40 lbl.Trim();
41 m_nops.Resize(lbl.GetSize());
42
43 for (int i = 0; i < lbl.GetSize(); i++) {
44 int nop = lbl[i] - 'A';
45 m_nops[i] = nop;
46 }
47}
48
49
50// This function returns true if the sub_label can be found within

Callers 2

ParasiteInfectHostMethod · 0.45
LoadMethod · 0.45

Calls 3

TrimMethod · 0.80
ResizeMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected