1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 02:36:01 +02:00

Added toString method.

This commit is contained in:
Sergey Prigogin 2012-02-09 18:32:59 -08:00
parent 7f07eb597c
commit c4d354c7a9

View file

@ -20,7 +20,6 @@ final class IncludeSearchPathElement {
public static final String FRAMEWORK_VAR = "__framework__"; //$NON-NLS-1$ public static final String FRAMEWORK_VAR = "__framework__"; //$NON-NLS-1$
public static final String FILE_VAR = "__header__"; //$NON-NLS-1$ public static final String FILE_VAR = "__header__"; //$NON-NLS-1$
private final String fPath; private final String fPath;
private final boolean fForQuoteIncludesOnly; private final boolean fForQuoteIncludesOnly;
private final boolean fIsFrameworkDirectory; private final boolean fIsFrameworkDirectory;
@ -47,7 +46,7 @@ final class IncludeSearchPathElement {
return null; return null;
} }
String framework = includeDirective.substring(0, firstSep); String framework = includeDirective.substring(0, firstSep);
String file= includeDirective.substring(firstSep+1); String file= includeDirective.substring(firstSep + 1);
if (file.length() == 0) if (file.length() == 0)
return null; return null;
@ -70,7 +69,15 @@ final class IncludeSearchPathElement {
private void replace(StringBuilder buf, String find, final String replace) { private void replace(StringBuilder buf, String find, final String replace) {
int idx= buf.indexOf(find); int idx= buf.indexOf(find);
if (idx >= 0) { if (idx >= 0) {
buf.replace(idx, idx+find.length(), replace); buf.replace(idx, idx + find.length(), replace);
} }
} }
/**
* For debugging only.
*/
@Override
public String toString() {
return fPath;
}
} }