(char1: string, char2: string)
| 61 | |
| 62 | // Check if two characters are from different scripts (indicating word boundary) |
| 63 | export const isDifferentScript = (char1: string, char2: string): boolean => { |
| 64 | if (!isWordCharStrict(char1) || !isWordCharStrict(char2)) return false; |
| 65 | return getCharScript(char1) !== getCharScript(char2); |
| 66 | }; |
| 67 | |
| 68 | // Find next word start within a line, starting from col |
| 69 | export const findNextWordStartInLine = ( |
no test coverage detected