Lucene.Net.Analysis.Compound.Hyphenation.HyphenationTree.GetValues C# (CSharp) Method

GetValues() protected method

protected GetValues ( int k ) : sbyte[]
k int
return sbyte[]
        protected internal virtual sbyte[] GetValues(int k)
        {
            StringBuilder buf = new StringBuilder();
            sbyte v = vspace[k++];
            while (v != 0)
            {
                char c = (char)((((int)((uint)v >> 4))) - 1);
                buf.Append(c);
                c = (char)(v & 0x0f);
                if (c == 0)
                {
                    break;
                }
                c = (char)(c - 1);
                buf.Append(c);
                v = vspace[k++];
            }
            sbyte[] res = new sbyte[buf.Length];
            for (int i = 0; i < res.Length; i++)
            {
                res[i] = (sbyte)buf[i];
            }
            return res;
        }