* Compute the spaceIndentCount necessary to align the current line colon * with the colon position in the argument. * If it cannot be aligned indentLength is returned and a new colon * position is calculated. */
| 2122 | * position is calculated. |
| 2123 | */ |
| 2124 | int ASBeautifier::computeObjCColonAlignment(string &line, int colonAlignPosition) const |
| 2125 | { |
| 2126 | int colonPosition = line.find(':'); |
| 2127 | if (colonPosition < 0 || colonPosition > colonAlignPosition) |
| 2128 | return indentLength; |
| 2129 | return (colonAlignPosition - colonPosition); |
| 2130 | } |
| 2131 | |
| 2132 | /** |
| 2133 | * Parse the current line to update indentCount and spaceIndentCount. |
nothing calls this directly
no outgoing calls
no test coverage detected