These functions serve to manage message codes, i.e., codes that are used Tidy and communicated via its callback filters to represent reports and dialogue that Tidy emits.
Functions | |
TidyIterator TIDY_CALL | getErrorCodeList (void) |
Initiates an iterator for a list of message codes available in Tidy. More... | |
uint TIDY_CALL | getNextErrorCode (TidyIterator *iter) |
Given a valid TidyIterator initiated with getErrorCodeList(), returns an instance of the opaque type TidyMessageArgument, which serves as a token against which the remaining argument API functions may be used to query information. More... | |
ctmbstr TIDY_CALL | tidyErrorCodeAsKey (uint code) |
Given a message code, return the text key that represents it. More... | |
uint TIDY_CALL | tidyErrorCodeFromKey (ctmbstr code) |
Given a text key representing a message code, return the uint that represents it. More... | |
TidyIterator TIDY_CALL getErrorCodeList | ( | void | ) |
Initiates an iterator for a list of message codes available in Tidy.
This iterator allows you to iterate through all of the code. In orde to iterate through the codes, initiate the iterator with this function, and then use getNextErrorCode() to retrieve the first and subsequent codes. For example:
Given a valid TidyIterator initiated with getErrorCodeList(), returns an instance of the opaque type TidyMessageArgument, which serves as a token against which the remaining argument API functions may be used to query information.
iter | The TidyIterator (initiated with getErrorCodeList()) token. |
Given a message code, return the text key that represents it.
code | The error code to lookup. |
Given a text key representing a message code, return the uint that represents it.
code | The string representing the error code. |