meta data for this page
  •  

F_LINEWRAP

compatibility to FreeUDFLib, FreeUDFLibC, FreeUDFLib AvERP, GrUDF

Entrypoint linewrap not compatible with UTF-8 - use U_LINEWRAP

U_LINEWRAP

function from adhoc

Entrypoint u_linewrap compatible with UTF-8


Inputs/Outputs

   Input     CSTRING(32760)     String
           INTEGER            starting position
           INTEGER            measure
   Output    CSTRING(32760)     Spends all words of the string, begin with the initial position, which are all not longer than the measure. 

Syntax

   Counting starts with 0.
   TestSQL
   SELECT  'alle einer Geburtstagsparty' AS ISCORRECT, F_LINEWRAP('Wir gehen alle einer Geburtstagsparty', 10, 30) 
   FROM RDB$DATABASE;
   SELECT  'alle einer' AS ISCORRECT, F_LINEWRAP('Wir gehen alle einer Geburtstagsparty', 10, 29) FROM 
   RDB$DATABASE;
   SELECT  NULL AS ISCORRECT, F_LINEWRAP(NULL, NULL, NULL) FROM RDB$DATABASE;