diff options
Diffstat (limited to 'l10ntools/inc/wtranode.hxx')
-rw-r--r-- | l10ntools/inc/wtranode.hxx | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/l10ntools/inc/wtranode.hxx b/l10ntools/inc/wtranode.hxx index 6283f4ea0c93..44db809c3b31 100644 --- a/l10ntools/inc/wtranode.hxx +++ b/l10ntools/inc/wtranode.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -41,61 +41,61 @@ typedef UINT8 BRANCH_T; -const BRANCH_T C_BR_ALPHABASE = 4; +const BRANCH_T C_BR_ALPHABASE = 4; const BRANCH_T C_NR_OF_BRANCHES = 34; -/** @task +/** @task This is a node of the parsing-tree which implements the fuctionality of class WordTransTree. WordTransTree is dependant of this class, but NOT the other way! **/ -class WTT_Node // WordTransTree-Node +class WTT_Node // WordTransTree-Node { public: enum E_TokenType { -// no_token = 0, +// no_token = 0, token_to_keep, token_to_replace }; // LIFECYCLE WTT_Node( - UINT8 i_nValue, // Own branch-value. - WTT_Node * i_pDefaultBranch, - WTT_Node * i_pDefaultBranchForAlphas ); - void SetBranch( + UINT8 i_nValue, // Own branch-value. + WTT_Node * i_pDefaultBranch, + WTT_Node * i_pDefaultBranchForAlphas ); + void SetBranch( UINT8 i_cBranch, - WTT_Node * i_pNode ); - void SetAsTokenToReplace( - const ByteString & i_sReplaceString ); + WTT_Node * i_pNode ); + void SetAsTokenToReplace( + const ByteString & i_sReplaceString ); ~WTT_Node(); // OPERATIONS - WTT_Node * GetNextNode( - UINT8 i_cBranch ); /// [0 .. C_NR_OF_BRANCHES-1], sonst GPF !!! + WTT_Node * GetNextNode( + UINT8 i_cBranch ); /// [0 .. C_NR_OF_BRANCHES-1], sonst GPF !!! // INQUIRY - E_TokenType TokenType() const; + E_TokenType TokenType() const; UINT8 Value() const; - BOOL IsOnDeleting() const; - const ByteString & ReplaceString() const; + BOOL IsOnDeleting() const; + const ByteString & ReplaceString() const; private: // DATA - UINT8 nValue; - E_TokenType eType; - ByteString sReplaceString; - WTT_Node * aBranches[C_NR_OF_BRANCHES]; // Mostly DYN pointers. - char bIsOnDeleting; + UINT8 nValue; + E_TokenType eType; + ByteString sReplaceString; + WTT_Node * aBranches[C_NR_OF_BRANCHES]; // Mostly DYN pointers. + char bIsOnDeleting; }; inline WTT_Node * -WTT_Node::GetNextNode(UINT8 i_cBranch) +WTT_Node::GetNextNode(UINT8 i_cBranch) { return aBranches[i_cBranch]; } inline WTT_Node::E_TokenType WTT_Node::TokenType() const |