SpeechIndexInOocRange(index: number, oocRanges: { length: number; start: number }[]): boolean
Convenience function to check weither a character of a message is within the passed OOC range.
Attention: Currently this function does not detect the end of OOC messages properly to mimic the old behaviour before it was introduced. So "length" ALWAYS ranges from the opening parenthesis to the end of the message!!!
Parameters
index: number
The index of the character to check
oocRanges: { length: number; start: number }[]
The OOC Ranges to check
Returns boolean
Returns true if the position passed in index is within a entry in oocRange
Convenience function to check weither a character of a message is within the passed OOC range. Attention: Currently this function does not detect the end of OOC messages properly to mimic the old behaviour before it was introduced. So "length" ALWAYS ranges from the opening parenthesis to the end of the message!!!