Module

jinks/names

src/jinks/names.pooka

A filename should keep its meaning when the site crosses machines. Windows device names remain reserved even with an extension; trailing dots and spaces can otherwise make two written names mean one file.

API reference

function

canonical

src/jinks/names.pooka:16
canonical(text: String) -> String
INFERREDfn(String) -> String

Equivalent Unicode spellings must not claim separate output files.

function

portable

src/jinks/names.pooka:24
portable(segment: String) -> Bool
INFERREDfn(String) -> Bool
Pooka
assert names.portable("owl.html")
assert !names.portable("NUL.html")