code: 9ferno

ref: 07bee1c2ea89752e608d881dde2e2a4a1e738516
dir: /module/names.m/

View raw version
Names: module
{
	PATH:	con "/dis/lib/names.dis";

	cleanname:	fn(name: string): string;
	dirname:	fn(name: string): string;
	basename:	fn(name: string, suffix: string): string;
	elements:	fn(name: string): list of string;
	isprefix:	fn(a: string, b: string): int;
	pathname:	fn(els: list of string): string;
	rooted:	fn(root: string, name: string): string;
	relative:	fn(name: string, root: string): string;
	absolute:	fn(p: string): int;
	searchname:	fn(progname: string): string;
};