MCPcopy Create free account
hub / github.com/anus-dev/ANUS / isDifferentScript

Function isDifferentScript

packages/cli/src/ui/components/shared/text-buffer.ts:63–66  ·  view source on GitHub ↗
(char1: string, char2: string)

Source from the content-addressed store, hash-verified

61
62// Check if two characters are from different scripts (indicating word boundary)
63export 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
69export const findNextWordStartInLine = (

Callers 3

findNextWordStartInLineFunction · 0.85
findPrevWordStartInLineFunction · 0.85
findWordEndInLineFunction · 0.85

Calls 2

isWordCharStrictFunction · 0.85
getCharScriptFunction · 0.85

Tested by

no test coverage detected