Interface IWordDetector


public interface IWordDetector
Defines the interface by which WordRule determines whether a given character is valid as part of a word in the current context. Originally since unknown version, but moved to org.eclipse.text in 3.14
Since:
3.14
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isWordPart(char c)
    Returns whether the specified character is valid as a subsequent character in a word.
    boolean
    isWordStart(char c)
    Returns whether the specified character is valid as the first character in a word.
  • Method Details

    • isWordStart

      boolean isWordStart(char c)
      Returns whether the specified character is valid as the first character in a word.
      Parameters:
      c - the character to be checked
      Returns:
      true is a valid first character in a word, false otherwise
    • isWordPart

      boolean isWordPart(char c)
      Returns whether the specified character is valid as a subsequent character in a word.
      Parameters:
      c - the character to be checked
      Returns:
      true if the character is a valid word part, false otherwise