Skip to content

Commit 48e7d31

Browse files
author
Damien Nadé
committed
Use branching to avoid comparing anew to the same regexp
1 parent 08b4e20 commit 48e7d31

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

‎doxygen-bash.sed

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,25 +54,25 @@
5454
x
5555
s/.*/&Integer /
5656
x
57+
b array
5758
}
5859

5960
# String type. handling.
60-
/^-[aAlturx]*i/!{
61-
/^-[aAtrx]*l/{
62-
x
63-
s/.*/&LowerCase /
64-
x
65-
}
66-
/^-[aAtrx]*u/{
67-
x
68-
s/.*/&UpperCase /
69-
x
70-
}
61+
/^-[aAtrx]*l/{
7162
x
72-
s/.*/&String /
63+
s/.*/&LowerCase /
64+
x
65+
}
66+
/^-[aAtrx]*u/{
67+
x
68+
s/.*/&UpperCase /
7369
x
7470
}
71+
x
72+
s/.*/&String /
73+
x
7574

75+
: array
7676
# For arrays, we remove the initialisation since I dont know yet
7777
# how to print it for doxygen to understand.
7878
/^-[Ailturx]*a/{

0 commit comments

Comments
 (0)