summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2006-10-17 18:03:21 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2006-10-17 18:03:21 (GMT)
commit8a6cb1baa8edce0b56a07e97bd57f5d5dd756cb5 (patch)
tree54faf2b759aca5cdc6184168aa676ed669435766 /src/doctokenizer.l
parentca720513ae89ad82fd8d8c4340271375ae1e9f64 (diff)
downloadDoxygen-8a6cb1baa8edce0b56a07e97bd57f5d5dd756cb5.zip
Doxygen-8a6cb1baa8edce0b56a07e97bd57f5d5dd756cb5.tar.gz
Doxygen-8a6cb1baa8edce0b56a07e97bd57f5d5dd756cb5.tar.bz2
Release-1.5.0
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r--src/doctokenizer.l12
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];