diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2006-10-17 18:03:21 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2006-10-17 18:03:21 (GMT) |
commit | 65f47e04daaf7f06da11c64af364e65e60e66387 (patch) | |
tree | 54faf2b759aca5cdc6184168aa676ed669435766 /src/doctokenizer.l | |
parent | 3c8148441a129febc5c2b9e4b2b2cbd018ad3b6e (diff) | |
download | Doxygen-65f47e04daaf7f06da11c64af364e65e60e66387.zip Doxygen-65f47e04daaf7f06da11c64af364e65e60e66387.tar.gz Doxygen-65f47e04daaf7f06da11c64af364e65e60e66387.tar.bz2 |
Release-1.5.0
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r-- | src/doctokenizer.l | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l index 5b46523..c3aafba 100644 --- a/src/doctokenizer.l +++ b/src/doctokenizer.l @@ -195,7 +195,7 @@ static void handleHtmlTag() { char c=tagText.at(i); // skip spaces - while (i<yyleng && c==' ') { c=tagText.at(++i); } + while (i<yyleng && isspace(c)) { c=tagText.at(++i); } // check for end of the tag if (c == '>') break; // Check for XML style "empty" tag. @@ -206,17 +206,17 @@ static void handleHtmlTag() } startName=i; // search for end of name - while (i<yyleng && c!=' ' && c!='=') { c=tagText.at(++i); } + while (i<yyleng && !isspace(c) && c!='=') { c=tagText.at(++i); } endName=i; HtmlAttrib opt; opt.name = tagText.mid(startName,endName-startName).lower(); // skip spaces - while (i<yyleng && c==' ') { c=tagText.at(++i); } + while (i<yyleng && isspace(c)) { c=tagText.at(++i); } if (tagText.at(i)=='=') // option has value { c=tagText.at(++i); // skip spaces - while (i<yyleng && c==' ') { c=tagText.at(++i); } + while (i<yyleng && isspace(c)) { c=tagText.at(++i); } if (tagText.at(i)=='\'') // option '...' { c=tagText.at(++i); @@ -240,7 +240,7 @@ static void handleHtmlTag() { startAttrib=i; // search for separator - while (i<yyleng && c!=' ') { c=tagText.at(++i); } + while (i<yyleng && !isspace(c)) { c=tagText.at(++i); } endAttrib=i; if (i<yyleng) c=tagText.at(++i); } @@ -261,7 +261,7 @@ static QString stripEmptyLines(const char *s) for (;;) { int c; - while ((c=s[p]) && (c==' ' || c=='\t' || c=='\r')) p++; + while ((c=s[p]) && isspace(c)) p++; if (s[p]=='\n') result=++p; else break; } return &s[result]; |