#include <public/ITextParsers.h>
Public Member Functions | |
| virtual unsigned int | GetTextParserVersion1 () |
| Returns version number. | |
| virtual bool | ReadINI_NewSection (const char *section, bool invalid_tokens, bool close_bracket, bool extra_tokens, unsigned int *curtok) |
| Called when a new section is encountered in an INI file. | |
| virtual bool | ReadINI_KeyValue (const char *key, const char *value, bool invalid_tokens, bool equal_token, bool quotes, unsigned int *curtok) |
| Called when encountering a key/value pair in an INI file. | |
| virtual bool | ReadINI_RawLine (const char *line, unsigned int *curtok) |
| Called after a line has been preprocessed, if it has text. | |
Definition at line 90 of file ITextParsers.h.
| virtual bool SourceMod::ITextListener_INI::ReadINI_NewSection | ( | const char * | section, | |
| bool | invalid_tokens, | |||
| bool | close_bracket, | |||
| bool | extra_tokens, | |||
| unsigned int * | curtok | |||
| ) | [inline, virtual] |
Called when a new section is encountered in an INI file.
| section | Name of section in between the [ and ] characters. | |
| invalid_tokens | True if invalid tokens were detected in the name. | |
| close_bracket | True if a closing bracket was detected, false otherwise. | |
| extra_tokens | True if extra tokens were detected on the line. | |
| curtok | Contains current token in the line where the section name starts. You can add to this offset when failing to point to a token. |
Definition at line 112 of file ITextParsers.h.
| virtual bool SourceMod::ITextListener_INI::ReadINI_KeyValue | ( | const char * | key, | |
| const char * | value, | |||
| bool | invalid_tokens, | |||
| bool | equal_token, | |||
| bool | quotes, | |||
| unsigned int * | curtok | |||
| ) | [inline, virtual] |
Called when encountering a key/value pair in an INI file.
| key | Name of key. | |
| value | String containing value (with quotes stripped, if any). | |
| invalid_tokens | Whether or not the key contained invalid tokens. | |
| equal_token | There was an '=' sign present (in case the value is missing). | |
| quotes | Whether value was enclosed in quotes. | |
| curtok | Contains the token index of the start of the value string. This can be changed when returning false. |
Definition at line 133 of file ITextParsers.h.
| virtual bool SourceMod::ITextListener_INI::ReadINI_RawLine | ( | const char * | line, | |
| unsigned int * | curtok | |||
| ) | [inline, virtual] |
Called after a line has been preprocessed, if it has text.
| line | Contents of line. | |
| curtok | Pointer to optionally store failed position in string. |
Definition at line 150 of file ITextParsers.h.
1.5.1