Top Prev Next Up Down

Support of relational operators

In package Y2018-Text-Core-Str is the CFix support and in package Y2018-Text-Core-CVarpack is the CVar support. Relational operator-functions "=", "<" ,"<=", ">", ">=" are overloaded.

Y2018-Text-Core-Str:

function "="(first:CFix;second:String) return Boolean ;
function "<"(first:CFix;second:String) return Boolean ;
function "<="(first:CFix;second:String) return Boolean ;
function ">"(first:CFix;second:String) return Boolean ;
function ">="(first:CFix;second:String) return Boolean ;
function "="(first:String;second:CFix) return Boolean ;
function "<"(first:String;second:CFix) return Boolean ;
function "<="(first:String;second:CFix) return Boolean ;
function ">"(first:String;second:CFix) return Boolean ;
function ">="(first:String;second:CFix) return Boolean ;
function "="(first:CVar;second:String) return Boolean ;
function "<"(first:CVar;second:String) return Boolean ;
function "<="(first:CVar;second:String) return Boolean ;
function ">"(first:CVar;second:String) return Boolean ;
function ">="(first:CVar;second:String) return Boolean ;
function "="(first:String;second:CVar) return Boolean ;
function "<"(first:String;second:CVar) return Boolean ;
function "<="(first:String;second:CVar) return Boolean ;
function ">"(first:String;second:CVar) return Boolean ;
function ">="(first:String;second:CVar) return Boolean ;

In Y2018-Text-Core-CVarpack:

function "<" (Left : CVar; Right : CVar) return Boolean;
function "<" (Left : CVar; Right : CFix) return Boolean;
function "<" (Left : CFix; Right : CVar) return Boolean;
function "<=" (Left : CVar; Right : CVar) return Boolean;
function "<=" (Left : CVar; Right : CFix) return Boolean;
function "<=" (Left : CFix; Right : CVar) return Boolean;
function "=" (Left : CVar; Right : CVar) return Boolean;
function "=" (Left : CVar; Right : CFix) return Boolean;
function "=" (Left : CFix; Right : CVar) return Boolean;
function ">" (Left : CVar; Right : CVar) return Boolean;
function ">" (Left : CVar; Right : CFix) return Boolean;
function ">" (Left : CFix; Right : CVar) return Boolean;
function ">=" (Left : CVar; Right : CVar) return Boolean;
function ">=" (Left : CVar; Right : CFix) return Boolean;

Note that relational operator-functions between CVar and String is in package Y2018-Text-Core-Str because UTF.To8 and UTF.To21 is used in theese functions.