Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Camelon2005-07-06 15:49:36 -0400
committerJohn Camelon2005-07-06 15:49:36 -0400
commit41006ecdd04b1867a5bd5a11e9be67dd8a0bc205 (patch)
tree56991a7185f2b055810dc2704afbc549330a9cee
parent8d3bd00d1ced817313a29a164c05064896fc0950 (diff)
downloadorg.eclipse.cdt-41006ecdd04b1867a5bd5a11e9be67dd8a0bc205.tar.gz
org.eclipse.cdt-41006ecdd04b1867a5bd5a11e9be67dd8a0bc205.tar.xz
org.eclipse.cdt-41006ecdd04b1867a5bd5a11e9be67dd8a0bc205.zip
Fixed Bug 100640 - Indexer encoding/decoding optimizations
-rw-r--r--core/org.eclipse.cdt.core/browser/org/eclipse/cdt/internal/core/browser/cache/IndexerTypesJob2.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/internal/core/browser/cache/IndexerTypesJob2.java b/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/internal/core/browser/cache/IndexerTypesJob2.java
index c7dc8601e8..7956dc6280 100644
--- a/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/internal/core/browser/cache/IndexerTypesJob2.java
+++ b/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/internal/core/browser/cache/IndexerTypesJob2.java
@@ -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){

Back to the top