Last change
on this file since 16752 was
15771,
checked in by bburlacu, 7 years ago
|
#2895: Add solution skeleton for PushGP with genealogy analysis.
|
File size:
499 bytes
|
Rev | Line | |
---|
[15771] | 1 | namespace HeuristicLab.Problems.ProgramSynthesis { |
---|
[15017] | 2 | public static class CharExtentions {
|
---|
| 3 | public static string Printify(this char c) {
|
---|
| 4 | switch (c) {
|
---|
| 5 | case '\0': return "\\0";
|
---|
| 6 | case '\a': return "\\a";
|
---|
| 7 | case '\b': return "\\b";
|
---|
| 8 | case '\f': return "\\f";
|
---|
| 9 | case '\n': return "\\n";
|
---|
| 10 | case '\r': return "\\r";
|
---|
| 11 | case '\t': return "\\t";
|
---|
| 12 | case '\v': return "\\v";
|
---|
| 13 | default: return c.ToString();
|
---|
| 14 | }
|
---|
| 15 | }
|
---|
| 16 | }
|
---|
| 17 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.