{"file":"worker/project/pathkey.ts","version":318,"total":24,"from":1,"to":24,"lines":[{"n":1,"text":"// The key paths match by (#49, the rulings on case and Unicode):","atom":"a0","author":"init","version":0},{"n":2,"text":"// two spellings are one file when their keys are equal. It's Unicode's","atom":"a0","author":"init","version":0},{"n":3,"text":"// canonical caseless match, used only to compare, never to rename: the","atom":"a0","author":"init","version":0},{"n":4,"text":"// canonical decomposition (NFD), case folding, then NFD again. JavaScript has","atom":"a0","author":"init","version":0},{"n":5,"text":"// no case-folding call, so upper-then-lower case stands in for it; unlike","atom":"a0","author":"init","version":0},{"n":6,"text":"// lower case alone, it folds ß to ss as case folding does.","atom":"a0","author":"init","version":0},{"n":7,"text":"//","atom":"a0","author":"init","version":0},{"n":8,"text":"// The engine (V8 on Workers) and the client (Node) must build the same key,","atom":"a0","author":"init","version":0},{"n":9,"text":"// so the client imports this file rather than writing its own. Both take","atom":"a0","author":"init","version":0},{"n":10,"text":"// their Unicode data from their ICU; `unicodeVersion` says which, and a","atom":"a0","author":"init","version":0},{"n":11,"text":"// mismatch can only matter for characters assigned after the older one.","atom":"a0","author":"init","version":0},{"n":12,"text":"","atom":"a0","author":"init","version":0},{"n":13,"text":"export function pathKey(path: string): string {","atom":"a0","author":"init","version":0},{"n":14,"text":"\treturn path.normalize(\"NFD\").toUpperCase().toLowerCase().normalize(\"NFD\");","atom":"a0","author":"init","version":0},{"n":15,"text":"}","atom":"a0","author":"init","version":0},{"n":16,"text":"","atom":"a0","author":"init","version":0},{"n":17,"text":"/** Whether a path is in composed form (NFC), the form most tools on Windows and Linux expect. */","atom":"a0","author":"init","version":0},{"n":18,"text":"export function isComposed(path: string): boolean {","atom":"a0","author":"init","version":0},{"n":19,"text":"\treturn path === path.normalize(\"NFC\");","atom":"a0","author":"init","version":0},{"n":20,"text":"}","atom":"a0","author":"init","version":0},{"n":21,"text":"","atom":"a0","author":"init","version":0},{"n":22,"text":"/** The Unicode version this runtime's data is from, where the runtime says. */","atom":"a0","author":"init","version":0},{"n":23,"text":"export const unicodeVersion: string | undefined = (globalThis as { process?: { versions?: { unicode?: string } } })","atom":"a0","author":"init","version":0},{"n":24,"text":"\t.process?.versions?.unicode;","atom":"a0","author":"init","version":0}],"atoms":[{"atom":"a0","author":"init","message":"Start the project","time":1791506895507,"timeIso":"2026-10-09T00:48:15.507Z","publish":{"draft":null,"version":0,"agent":"init","message":"Start the project","time":1791506895507,"timeIso":"2026-10-09T00:48:15.507Z"}}]}