Delimiter mdo_keyword(word)

- returns the mdo-keyword of word String word;

int string_to_key(str)

- returns the symbolic value for keyword str String str;

int sgml_string_to_key(str)

- returns the symbolic value for str String str;

This module defines all keywords used in SGML. Internal to the program, symbolic integer values are used for the keywords. These values are defined in the file ``types.h''. These functions turn a character string into the symbolic value for the corresponding keyword. If no keyword corresponds to the string, the value TOK_NOD is returned. The function mdo_keyword() converts all keywords that can follow the MDO delimiter (attlist, element, entity, doctype, etc...). Sgml_string_to_key() converts a keyword that may occur in an SGML declaration. String_to_key() converts all other SGML keywords.

String key_str(key)

- returns the keyword of which key is the symbolic value int key;

This function converts a symbolic value into the corresponding character string. This is used for debugging and for error-reporting.

int priority(k1, k2)

- returns the key with the greatest priority int k1; int k2;

This function takes as parameters two symbolic values from status keywords for a marked section, which are INCLUDE, IGNORE, TEMP, CDATA and RCDATA. It returns the key with the greatest priority. See Standard 10.4.2, page 37.

keywords.c keywords.h