MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / Parse

Function Parse

DSView/pv/dsvdef.cpp:34–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace DecoderDataFormat
33{
34 int Parse(const char *name){
35 if (strcmp(name, "dec") == 0){
36 return (int)dec;
37 }
38 if (strcmp(name, "hex") == 0){
39 return (int)hex;
40 }
41 if (strcmp(name, "oct") == 0){
42 return (int)oct;
43 }
44 if (strcmp(name, "bin") == 0){
45 return (int)bin;
46 }
47 if (strcmp(name, "ascii") == 0){
48 return (int)ascii;
49 }
50 return (int)hex;
51 }
52}

Callers 3

add_protocol_by_idMethod · 0.85
SetProtocolFormatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected