summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 13ae200..bebfbb1 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -8137,14 +8137,13 @@ bool classVisibleInIndex(const ClassDef *cd)
QCString extractDirection(QCString &docs)
{
- QRegExp re("\\[[^\\]]+\\]"); // [...]
+ QRegExp re("\\[[ inout,]+\\]"); // [...]
int l=0;
if (re.match(docs,0,&l)==0)
{
- int inPos = docs.find("in", 1,FALSE);
- int outPos = docs.find("out",1,FALSE);
- bool input = inPos!=-1 && inPos<l;
- bool output = outPos!=-1 && outPos<l;
+ QCString dir=docs.left(l);
+ bool input = dir.find("in")!=-1;
+ bool output = dir.find("out")!=-1;
if (input || output) // in,out attributes
{
docs = docs.mid(l); // strip attributes