MCPcopy Create free account
hub / github.com/dirkvranckaert/AndroidDecompiler / convertTabToSpaces

Method convertTabToSpaces

astyle/src/ASBeautifier.cpp:1308–1312  ·  view source on GitHub ↗

* convert tabs to spaces. * i is the position of the character to convert to spaces. * tabIncrementIn is the increment that must be added for tab indent characters * to get the correct column for the current tab. */

Source from the content-addressed store, hash-verified

1306 * to get the correct column for the current tab.
1307 */
1308int ASBeautifier::convertTabToSpaces(int i, int tabIncrementIn) const
1309{
1310 int tabToSpacesAdjustment = indentLength - 1 - ((tabIncrementIn + i) % indentLength);
1311 return tabToSpacesAdjustment;
1312}
1313
1314/**
1315 * trim removes the white space surrounding a line.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected