Example #1
0
        //----------------------------------------------------------------------

        static bool GrabExtra(ref Types.XStringSeg word, out String result)
        {
            if (word != null)
            {
                XString type = new XString();
                {
                    while (word && ((word[0] != ',') && (word[0] != ')')))
                    {
                        if (word[0] == ')')
                        {
                            break;
                        }
                        type.Append(word.Clone());
                        word = word.Next;
                    }
                }
                if (type)
                {
                    type.Originate();
                    result = type.ToString();
                }
                else
                {
                    result = null;
                }
            }
            else
            {
                result = null;
            }
            return(true);
        }