mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 11:15:38 +02:00
Fixed Bug 100640 - Indexer encoding/decoding optimizations
This commit is contained in:
parent
8d3bd00d1c
commit
41006ecdd0
1 changed files with 12 additions and 2 deletions
|
@ -160,8 +160,18 @@ public class IndexerTypesJob2 extends IndexerJob2 {
|
|||
// }
|
||||
final IPath workspaceRelativePath = PathUtil.getWorkspaceRelativePath(pth);
|
||||
int offset = entry.getOffsets()[0][0];
|
||||
int offsetType = Integer.valueOf(String.valueOf(offset).substring(0,1)).intValue();
|
||||
int value = Integer.valueOf(String.valueOf(offset).substring(1)).intValue();
|
||||
// int offsetType = Integer.valueOf(String.valueOf(offsets[i][j]).substring(0,1)).intValue();
|
||||
int offsetType = offset;
|
||||
int m = 1;
|
||||
while (offsetType >= 10) {
|
||||
offsetType = offsetType / 10;
|
||||
m *= 10;
|
||||
}
|
||||
int mod = 1;
|
||||
while( offset / ( mod * 10 )> 0 )
|
||||
mod *= 10;
|
||||
int value = offset % mod;
|
||||
// int value = Integer.valueOf(String.valueOf(offset).substring(1)).intValue();
|
||||
|
||||
TypeReference typeReference = null;
|
||||
if (offsetType==IIndex.LINE){
|
||||
|
|
Loading…
Add table
Reference in a new issue