|
Public Member Functions |
| | ASBeautifier () |
| virtual | ~ASBeautifier () |
| virtual void | init (ASSourceIterator *iter) |
| virtual void | init () |
| virtual bool | hasMoreLines () const |
| virtual std::string | nextLine () |
| virtual std::string | beautify (const std::string &line) |
| void | setTabIndentation (int length=4, bool forceTabs=false) |
| void | setSpaceIndentation (int length=4) |
| void | setMaxInStatementIndentLength (int max) |
| void | setMinConditionalIndentLength (int min) |
| void | setClassIndent (bool state) |
| void | setSwitchIndent (bool state) |
| void | setCaseIndent (bool state) |
| void | setBracketIndent (bool state) |
| void | setBlockIndent (bool state) |
| void | setNamespaceIndent (bool state) |
| void | setLabelIndent (bool state) |
| void | setCStyle () |
| void | setJavaStyle () |
| void | setEmptyLineFill (bool state) |
| void | setPreprocessorIndent (bool state) |
Protected Member Functions |
| int | getNextProgramCharDistance (const std::string &line, int i) |
| bool | isLegalNameChar (char ch) const |
| bool | isWhiteSpace (char ch) const |
| const std::string * | findHeader (const std::string &line, int i, const std::vector< const std::string * > &possibleHeaders, bool checkBoundry=true) |
| std::string | trim (const std::string &str) |
| int | indexOf (std::vector< const std::string * > &container, const std::string *element) |
Private Member Functions |
| | ASBeautifier (const ASBeautifier ©) |
| void | operator= (ASBeautifier &) |
| void | initStatic () |
| void | registerInStatementIndent (const std::string &line, int i, int spaceTabCount, int minIndent, bool updateParenStack) |
| std::string | preLineWS (int spaceTabCount, int tabCount) |
Private Attributes |
| ASSourceIterator * | sourceIterator |
| std::vector< ASBeautifier * > * | waitingBeautifierStack |
| std::vector< ASBeautifier * > * | activeBeautifierStack |
| std::vector< int > * | waitingBeautifierStackLengthStack |
| std::vector< int > * | activeBeautifierStackLengthStack |
| std::vector< const std::string * > * | headerStack |
std::vector< std::vector<
const std::string * > * > * | tempStacks |
| std::vector< int > * | blockParenDepthStack |
| std::vector< bool > * | blockStatementStack |
| std::vector< bool > * | parenStatementStack |
| std::vector< int > * | inStatementIndentStack |
| std::vector< int > * | inStatementIndentStackSizeStack |
| std::vector< int > * | parenIndentStack |
| std::vector< bool > * | bracketBlockStateStack |
| std::string | indentString |
| const std::string * | currentHeader |
| const std::string * | previousLastLineHeader |
| const std::string * | immediatelyPreviousAssignmentOp |
| const std::string * | probationHeader |
| bool | isInQuote |
| bool | isInComment |
| bool | isInCase |
| bool | isInQuestion |
| bool | isInStatement |
| bool | isInHeader |
| bool | isCStyle |
| bool | isInOperator |
| bool | isInTemplate |
| bool | isInConst |
| bool | isInDefine |
| bool | isInDefineDefinition |
| bool | classIndent |
| bool | isInClassHeader |
| bool | isInClassHeaderTab |
| bool | switchIndent |
| bool | caseIndent |
| bool | namespaceIndent |
| bool | bracketIndent |
| bool | blockIndent |
| bool | labelIndent |
| bool | preprocessorIndent |
| bool | isInConditional |
| bool | isMinimalConditinalIndentSet |
| bool | shouldForceTabIndentation |
| int | minConditionalIndent |
| int | parenDepth |
| int | indentLength |
| int | blockTabCount |
| int | leadingWhiteSpaces |
| int | maxInStatementIndent |
| int | templateDepth |
| char | quoteChar |
| char | prevNonSpaceCh |
| char | currentNonSpaceCh |
| char | currentNonLegalCh |
| char | prevNonLegalCh |
| int | prevFinalLineSpaceTabCount |
| int | prevFinalLineTabCount |
| bool | emptyLineFill |
| bool | backslashEndsPrevLine |
| int | defineTabCount |
Static Private Attributes |
| std::vector< const std::string * > | headers |
| std::vector< const std::string * > | nonParenHeaders |
| std::vector< const std::string * > | preprocessorHeaders |
| std::vector< const std::string * > | preBlockStatements |
| std::vector< const std::string * > | assignmentOperators |
| std::vector< const std::string * > | nonAssignmentOperators |
| bool | calledInitStatic |