//---------------------------------------------------------------------
        // 文字解析
        //---------------------------------------------------------------------
        /// <summary>キー文字列の取得。</summary>
        /// <param name="buffer">内部バッファ。</param>
        /// <param name="iter">イテレータ。</param>
        /// <returns>キーリスト。</returns>
        internal static List <string> GetKeys(this TomlInnerBuffer.TomlIter iter)
        {
            var res = new List <string>();

            while (iter.GetChar(0).ch1 > 0)
            {
                iter.SkipSpace();               // 1

                var key = iter.GetKey();        // 2
                if (key != null)
                {
                    res.Add(key);
                    if (iter.GetChar(0).ch1 != '.')     // 3
                    {
                        break;
                    }
                    iter.Skip(1);
                }
                else
                {
                    break;
                }
            }
            return(res);
        }