Changeset 79 for trunk


Ignore:
Timestamp:
Mar 28, 2008, 1:27:02 PM (11 years ago)
Author:
lindanl
Message:

DTD actions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/markup_stats.cxx

    r74 r79  
    269269
    270270
    271 
     271template <CodeUnit_Base C>
     272inline void ParsingEngine<C>::Doctype_action(int start_pos, int end_pos) {
     273#ifdef SHOW_DTD_ACTIONS
     274        printf("Document Type:\n");
     275        cout << string((char *) GetCodeUnitPtr(start_pos), end_pos-start_pos) <<endl;
     276#endif
     277}
     278
     279template <CodeUnit_Base C>
     280inline void ParsingEngine<C>::PEReference_action(int start_pos, int end_pos) {
     281}
     282
     283template <CodeUnit_Base C>
     284inline void ParsingEngine<C>::Elementdecl_action(int start_pos, int end_pos) {
     285#ifdef SHOW_DTD_ACTIONS
     286        printf("Elementdecl:\n");
     287        cout << string((char *) GetCodeUnitPtr(start_pos), end_pos-start_pos) <<endl;
     288#endif
     289}
     290
     291template <CodeUnit_Base C>
     292inline void ParsingEngine<C>::AttlistDecl_action(int start_pos, int end_pos) {
     293#ifdef SHOW_DTD_ACTIONS
     294        printf("AttlistDecl:\n");
     295        cout << string((char *) GetCodeUnitPtr(start_pos), end_pos-start_pos) <<endl;
     296#endif
     297}
     298
     299template <CodeUnit_Base C>
     300inline void ParsingEngine<C>::Entitydecl_action(int start_pos, int end_pos) {
     301#ifdef SHOW_DTD_ACTIONS
     302        printf("Entitydecl:\n");
     303        cout << string((char *) GetCodeUnitPtr(start_pos), end_pos-start_pos) <<endl;
     304#endif
     305}
     306
     307template <CodeUnit_Base C>
     308inline void ParsingEngine<C>::Notationdecl_action(int start_pos, int end_pos) {
     309#ifdef SHOW_DTD_ACTIONS
     310        printf("Notationdecl:\n");
     311        cout << string((char *) GetCodeUnitPtr(start_pos), end_pos-start_pos) <<endl;
     312#endif
     313}
     314
     315template <CodeUnit_Base C>
     316inline void ParsingEngine<C>::Prolog_action(int start_pos, int end_pos) {
     317#ifdef SHOW_DTD_ACTIONS
     318        printf("Prolog:\n");
     319        cout << string((char *) GetCodeUnitPtr(start_pos), end_pos-start_pos) <<endl;
     320#endif
     321}
    272322
    273323int
     
    311361        else printf ("XML standalone = no by default.\n");
    312362       
     363        parser->Parse_Prolog();
    313364        parser->ParseContent();
    314365        parser->~Parser_Interface();
Note: See TracChangeset for help on using the changeset viewer.