This is a search engine friendly CGI program that outputs help documents.
The LufDoc (Live User Fed Documentation) comment system will be implemented soon.

PSP Help Doc Indexer System

(Version 1.4.1)


Declaration:

function str_ncomp(const str1, str2: string): shortint;

Arguments:

str1 First string
str2 Second string

Description:

This function compares 2 strings using natural comparison algorithm. It means that it compares strings as we do: literal part in alphabetical order, numeric part by value. So, in difference from str_comp it will tell that 'foo2' < 'foo120'.

Returns:

-1 if str1 < str2, 0 if str1 = str2 and 1 if str1 > str2.

Usage:

readln(s1);
readln(s2);
if str_ncomp(s1, s2) < 0 then writeln('S1 is less than S2')
else if str_ncomp(s1, s2) = 0 then writeln('S1 equals S2')
else writeln('S1 is greater than S2');

See also:

str_incomp, str_comp.

PSP Help documents