Exemplo n.º 1
0
 internal TokenizerStream()
 {
     m_countTokens = 0;
     m_headTokens  = new TokenizerShortBlock();
     m_headStrings = new TokenizerStringBlock();
     Reset();
 }
Exemplo n.º 2
0
        internal void Reset()
        {
            m_lastTokens     = null;
            m_currentTokens  = m_headTokens;
            m_currentStrings = m_headStrings;
            m_indexTokens    = 0;
            m_indexStrings   = 0;
#if _DEBUG
            m_bLastWasCStr = false;
#endif
        }
Exemplo n.º 3
0
        internal void AddString(String str)
        {
            if (m_currentStrings.m_block.Length <= m_indexStrings)
            {
                m_currentStrings.m_next = new TokenizerStringBlock();
                m_currentStrings        = m_currentStrings.m_next;
                m_indexStrings          = 0;
            }

            m_currentStrings.m_block[m_indexStrings++] = str;
        }
Exemplo n.º 4
0
        internal String GetNextString()
        {
            if (m_currentStrings.m_block.Length <= m_indexStrings)
            {
                m_currentStrings = m_currentStrings.m_next;
                m_indexStrings   = 0;
            }
#if _DEBUG
            m_bLastWasCStr = false;
#endif
            return(m_currentStrings.m_block[m_indexStrings++]);
        }