org.apache.lucene.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.get(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.get(k++);
		}
		sbyte[] res = new sbyte[buf.Length];
		for (int i = 0; i < res.Length; i++)
		{
		  res[i] = (sbyte) buf[i];
		}
		return res;
	  }