The String Plugin provides atoms for string operations and manipulations.
&concat takes two strings as input and returns their concatenation:
Example:
fullstring(Full) :- &concat[P,F](Full), stringpair(P,F).
&strstr evaluates to true if the second input argument is a (case-insensitive) substring of the first:
Example:
austrian_phone(P) :- &strstr[P,"+43"], phonenumber(P).
&split splits a string by a specified delimiter:
Example:
month(M) :- &split["2006-04-26","-",1](M).
&sha1sum calculates the SHA1 sum of a string:
Example:
owner(ID) :- &sha1sum[X](ID), mailbox(X).
$Id: stringplugin.html 2916 2011-05-16 18:33:56Z tkren $