Method GetWord
- Namespace
- Alternet.Editor.TextSource
- Assembly
- Alternet.Editor.v10.dll
GetWord(string, int, out int, out int)
Returns word start and end, if there is word at the specified position.
public virtual bool GetWord(string s, int pos, out int left, out int right)
Parameters
sstringThe given string.
posintThe index of character within the string.
leftintReceives start position of the word.
rightintReceives end position of the word.
Returns
- bool
True if any word found; otherwise false.
GetWord(string, int, out int, out int, HashSet<char>)
Returns word start and end, if there is word at the specified position.
public virtual bool GetWord(string s, int pos, out int left, out int right, HashSet<char> delims)
Parameters
sstringThe given string.
posintThe index of character within the string.
leftintReceives start position of the word.
rightintReceives end position of the word.
delimsHashSet<char>Collection of delimiters.
Returns
- bool
True if any word found; otherwise false.
GetWord(string, int, out int, out int, char[])
Returns word start and end, if there is word at the specified position.
public virtual bool GetWord(string s, int pos, out int left, out int right, char[] delims)
Parameters
sstringThe given string.
posintThe index of character within the string.
leftintReceives start position of the word.
rightintReceives end position of the word.
delimschar[]Collection of delimiters.
Returns
- bool
True if any word found; otherwise false.
GetWord(int, int, out int, out int)
Returns word start and end, if there is word at the specified position.
public virtual bool GetWord(int index, int pos, out int left, out int right)
Parameters
indexintThe index of line in the text.
posintThe index of character in the within the string.
leftintReceives start position of the word.
rightintReceives end position of the word.
Returns
- bool
True if any word found; otherwise false.