Changeset 329
- Timestamp:
- 06/05/08 19:39:42 (3 months ago)
- Files:
-
- projects/MyPoint/example/wiki.mypoint (modified) (1 diff)
- projects/MyPoint/src/simpleparser.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
projects/MyPoint/example/wiki.mypoint
r305 r329 25 25 * point 1.3.1 26 26 * point 2 27 ---- 28 == Title 4 == 29 || foo || bar || baz || 30 || foo || bar || baz || 31 || foo || bar || baz || projects/MyPoint/src/simpleparser.cpp
r327 r329 24 24 #include <QStack> 25 25 26 #include <qdebug.h> 27 26 28 SimpleParser::SimpleParser() 27 29 { … … 44 46 QRegExp date("\\{\\{date:([^\\}]+)\\}\\}"); 45 47 QRegExp footer("\\{\\{footer:([^\\}]+)\\}\\}"); 46 // QRegExp bullet1("^[\\s]{1}[*]([^\n]+)"); 47 // QRegExp bullet2("^[\\s]{3}[*]([^\n]+)"); 48 // QRegExp bullet3("^[\\s]{5}[*]([^\n]+)"); 49 // QRegExp bullet4("^[\\s]{7}[*]([^\n]+)"); 50 // QRegExp bullet5("^[\\s]{9}[*]([^\n]+)"); 51 // QRegExp bullet("^([\\s]{1,9})[*]([^\n]+)"); 52 48 QRegExp tableDelimiter("\\|\\| ((.(?!\\|\\|))+)"); 49 53 50 Presentation *presentation = new Presentation; 54 51 bool firstPage = true; … … 113 110 { 114 111 presentation->setDate( date.cap(1) ); 112 } 113 else if( line.contains(tableDelimiter) && !firstPage ) 114 { 115 QStringList cells = line.split( "||" , QString::SkipEmptyParts); 116 qDebug() << cells; 115 117 } 116 118 else if( direction( line, &captureText ) )
