| 1091 | } |
| 1092 | |
| 1093 | QualifiedIdentifier QualifiedIdentifier::mid(int pos, int len) const |
| 1094 | { |
| 1095 | QualifiedIdentifier ret; |
| 1096 | if (pos == 0) |
| 1097 | ret.setExplicitlyGlobal(explicitlyGlobal()); |
| 1098 | |
| 1099 | int cnt = ( int )count(); |
| 1100 | |
| 1101 | if (len == -1) |
| 1102 | len = cnt - pos; |
| 1103 | |
| 1104 | if (pos + len > cnt) |
| 1105 | len -= cnt - (pos + len); |
| 1106 | |
| 1107 | for (int a = pos; a < pos + len; a++) |
| 1108 | ret.push(at(a)); |
| 1109 | |
| 1110 | return ret; |
| 1111 | } |
| 1112 | |
| 1113 | Identifier QualifiedIdentifier::at(int i) const |
| 1114 | { |