Changeset 101 for trunk


Ignore:
Timestamp:
Apr 15, 2008, 8:55:10 AM (11 years ago)
Author:
lindanl
Message:

Parsers for internal and external entities.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/markup_stats.cxx

    r98 r101  
    129129        nesting_depth += 1;
    130130        if (nesting_depth > max_nesting_depth) max_nesting_depth = nesting_depth;
     131//      cout << string((char *) item, lgth) << endl;
    131132}
    132133
     
    289290
    290291template <CodeUnit_Base C>
     292inline void ParsingEngine<C>::ExtSubsetDecl_action(unsigned char * item, int lgth) {
     293#ifdef SHOW_DTD_ACTIONS
     294        printf("ExtSubsetDecl:\n");
     295        cout << string((char *) item, lgth) <<endl;
     296#endif
     297        printf("Finish parsing ExtSubsetDecl!\n");
     298}
     299
     300template <CodeUnit_Base C>
    291301inline void ParsingEngine<C>::Prolog_action(unsigned char * item, int lgth) {
    292302#ifdef SHOW_DTD_ACTIONS
     
    295305#endif
    296306}
    297 
    298307
    299308#define print_stats(stat_string, count, total_lgth) \
     
    325334        for (int run = 0; run < REPEAT_RUNS; run++) {
    326335       
    327         parser = Parser_Interface::ParserFactory(filename, false);
     336        parser = Parser_Interface::ParserFactory(filename);
    328337       
    329338       
     
    344353       
    345354        parser->Parse_Prolog();
     355//      parser->Parse_ExtSubsetDecl();
     356
    346357        parser->ParseContent();
    347358        parser->~Parser_Interface();
Note: See TracChangeset for help on using the changeset viewer.