JCDT/JCDT_Lib/internal/lex/LexStream.h
inline unsigned WcharOffset(TokenIndex start, TokenIndex end)
    {
        unsigned offset = 0;
        for (TokenIndex i = start; i <= end; i++)
        {
            for (const wchar_t* str = NameString(i); *str; str++)
            {
                if (*str > 0xff)
                    offset += 5;
            }
        }

        return offset;
    }
//
// For a sequence of tokens in a given range find out how many large
// characters they contain and compute the appropriate offset.
//
For a sequence of tokens in a given range find out how many large
characters they contain and compute the appropriate offset.
For a sequence of tokens in a given range find out how many large characters they contain and compute the appropriate offset .
inline unsigned WcharOffset(TokenIndex start, TokenIndex end)
    {
        unsigned offset = 0;
        for (TokenIndex i = start; i <= end; i++)
        {
            for (const wchar_t* str = NameString(i); *str; str++)
            {
                if (*str > 0xff)
                    offset += 5;
            }
        }
        return offset;
    }
inline unsigned WcharOffset ( TokenIndex start , TokenIndex end ) { unsigned offset = 0 ; for ( TokenIndex i = start ; i <= end ; i ++ ) { for ( const wchar_t * str = NameString ( i ) ; * str ; str ++ ) { if ( * str > 0xff ) offset += 5 ; } } return offset ; }
For a sequence of tokens in a given range find out how many large
characters they contain and compute the appropriate offset.
For a sequence of tokens in a given range find out how many large characters they contain and compute the appropriate offset .