diff options
Diffstat (limited to 'src/definition.cpp')
-rw-r--r-- | src/definition.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index 4474113..59c9ac9 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -73,3 +73,17 @@ void Definition::addSectionsToDefinition(QList<QCString> *anchorList) s=anchorList->next(); } } + +void Definition::setBriefDescription(const char *b) +{ + brief=QCString(b).stripWhiteSpace(); + int bl=brief.length(); + if (bl>0) // add puntuation if needed + { + switch(brief.at(bl-1)) + { + case '.': case '!': case '?': break; + default: brief+='.'; break; + } + } +} |