Index

Package: Constraints

Description

package Widgets.Input_Boxes.Constraints is

Subprograms & Entries

Basename_Only

function Basename_Only
( curstr, newstr: String ) return String;
Returns 'newstr' only if it contains the basename of a file, without an extension or path. If 'newstr' contains any invalid filename characters, a path, or a dot for an extension, then 'curstr' will be returned.

Filename_Only

function Filename_Only
( curstr, newstr: String ) return String;
Returns 'newstr' only if it contains a filename, without a path. If 'newstr' contains any invalid filename characters or a path, then 'curstr' will be returned.

Int_Only

function Int_Only
( curstr, newstr: String ) return String;
Returns 'newstr' only if it contains an integer or is an empty string. If 'newstr' contains any non-digit characters then 'curstr' will be returned.