Declaration of the State_RemoveComments() function that uses a state machine to filter out comments out of a piece of source code, as used in the State Pattern. More...
Go to the source code of this file.
Macros | |
#define | __STATE_REMOVECOMMENTS_H__ |
Functions | |
bool | State_RemoveComments (const char *text, DynamicString *filteredText) |
Entry point for callers to filter text. Removes C++-style line and block comments from the text. | |
Declaration of the State_RemoveComments() function that uses a state machine to filter out comments out of a piece of source code, as used in the State Pattern.
Definition in file State_RemoveComments.h.
#define __STATE_REMOVECOMMENTS_H__ |
Definition at line 9 of file State_RemoveComments.h.
bool State_RemoveComments | ( | const char * | text, |
DynamicString * | filteredText | ||
) |
Entry point for callers to filter text. Removes C++-style line and block comments from the text.
text | The text to filter. |
filteredText | A DynamicString that returns the filtered text. |
Definition at line 745 of file State_RemoveComments.c.
References _SetNextState(), StateContext::currentState, StateContext::currentStateBehavior, DynamicString_Set(), StateContext::inputText, StateContext::outputText, StateContext::outputTextIndex, State_Done, State_Error, State_Initial, State_NormalText, and StateContext::textIndex.
Referenced by State_Exercise().