MCPcopy Create free account
hub / github.com/WheretIB/nullc / Parse

Function Parse

SupSpi/SupSpi.cpp:63–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 Rule operator ~ (Rule a){ return Rule(new NegateP(a)); }
62
63 ParseResult Parse(const Rule& main, char* str, SpaceRule space, bool skipAction)
64 {
65 BaseP::continueParse = true;
66 SetAlterPolicy(ALTER_STANDART);
67 SetActionPolicy(skipAction ? ACTION_NONE : ACTION_STANDART);
68 char* temp = str;
69 bool res = main->Parse(&temp, space);
70 if(!BaseP::continueParse)
71 return PARSE_ABORTED;
72 if(res)
73 space(&temp);
74 if(!res)
75 return PARSE_FAILED;
76 if(res && strlen(temp))
77 return PARSE_NOTFULL;
78 return PARSE_OK;
79 }
80 void Abort()
81 {
82 BaseP::continueParse = false;

Callers 1

ColorTextMethod · 0.85

Calls 3

SetAlterPolicyFunction · 0.85
SetActionPolicyFunction · 0.85
ParseMethod · 0.45

Tested by

no test coverage detected