org.apache.lucene.analysis.miscellaneous.WordDelimiterIterator.type C# (CSharp) Method

type() private method

Return the type of the current subword. This currently uses the type of the first character in the subword.
private type ( ) : int
return int
	  internal int type()
	  {
		if (end == DONE)
		{
		  return 0;
		}

		int type_Renamed = charType(text[current]);
		switch (type_Renamed)
		{
		  // return ALPHA word type for both lower and upper
		  case WordDelimiterFilter.LOWER:
		  case WordDelimiterFilter.UPPER:
			return WordDelimiterFilter.ALPHA;
		  default:
			return type_Renamed;
		}
	  }