497a_uppsrc.diff
uppsrc/ide/Browser/Item.cpp 2013-07-28 01:35:44 +0400 | ||
---|---|---|
74 | 74 |
LLOG("ParseItemNatural " << m.natural << ", pname: " << m.pname |
75 | 75 |
<< ", tname: " << m.tname << ", m.ctname: " << m.ctname); |
76 | 76 |
Vector<ItemTextPart> part; |
77 |
const int length = name.GetLength(); |
|
78 |
if(length == 0) { |
|
79 |
LLOG("Empty name for s: " << s); |
|
80 |
return part; |
|
81 |
} |
|
77 | 82 |
bool param = false; |
78 | 83 |
int pari = -1; |
79 | 84 |
int par = 0; |
... | ... | |
90 | 95 |
} |
91 | 96 |
else |
92 | 97 |
if(iscid(*s) || *s == ':') { |
93 |
if(strncmp(s, name, name.GetLength()) == 0 && !iscid(s[name.GetLength()])) {
|
|
98 |
if(strncmp(s, name, length) == 0 && !iscid(s[length])) {
|
|
94 | 99 |
p.type = ITEM_NAME; |
95 |
n = name.GetLength();
|
|
100 |
n = length;
|
|
96 | 101 |
param = true; |
97 | 102 |
} |
98 | 103 |
else { |