LazReport: Implements CRLF script function, patch by Maxim Ganetsky and João Cezar Tissot, issue #41089

(cherry picked from commit 01c4f3588d)

Co-authored-by: Jesus Reyes A <jesusrmx@gmail.com>
This commit is contained in:
Maxim Ganetsky 2024-10-28 14:26:43 +00:00 committed by Maxim Ganetsky
parent 01915e0dfb
commit cbcab299f4
17 changed files with 71 additions and 0 deletions

View File

@ -460,6 +460,10 @@ msgstr "COPY(<Textový řezězec>, <Pozice>, <Délka>)/Vrací <Délka> znaků z
msgid "COUNT(<BandName>)/Returns count of data rows given in the <BandName>. "
msgstr "COUNT(<NázevSkupiny>)/Vrací počet datových řádků zadaných v <NázevSkupiny>. "
#: lr_const.sdescriptioncrlf
msgid "CRLF/Returns lineending character sequence."
msgstr ""
#: lr_const.sdescriptiondayof
msgid "DAYOF(<Date>)/Returns day number (1..31) of given <Date>."
msgstr "DAYOF(<Datum>)/Vrací číslo dne (1..31) zadaného <Datum>."

View File

@ -461,6 +461,10 @@ msgstr "COPY(<String>, <Position>, <Length>)/gibt <Length> Zeichen von <String>
msgid "COUNT(<BandName>)/Returns count of data rows given in the <BandName>. "
msgstr "COUNT(<BandName>)/Liefert die Zahl der Datenreihen des angegebenen <BandName>. "
#: lr_const.sdescriptioncrlf
msgid "CRLF/Returns lineending character sequence."
msgstr ""
#: lr_const.sdescriptiondayof
msgid "DAYOF(<Date>)/Returns day number (1..31) of given <Date>."
msgstr "DAYOF(<Datum>)/Gibt den Tag (1..31) des angegebenen <Datum> zurück."

View File

@ -454,6 +454,10 @@ msgstr "COPY(<String>, <Position>, <Length>)/Devuelve <Length> caracteres desde
msgid "COUNT(<BandName>)/Returns count of data rows given in the <BandName>. "
msgstr "COUNT(<NombreDeBanda>)/Regresa la cuenta de registros en <NombreDeBanda>. "
#: lr_const.sdescriptioncrlf
msgid "CRLF/Returns lineending character sequence."
msgstr ""
#: lr_const.sdescriptiondayof
msgid "DAYOF(<Date>)/Returns day number (1..31) of given <Date>."
msgstr "DAYOF(<Fecha>)/Regresa el día (1..31) de una <Fecha> dada."

View File

@ -452,6 +452,10 @@ msgstr "COPY(<Chaîne>, <Position>, <Longueur>)/Retourne <Longueur> caractères
msgid "COUNT(<BandName>)/Returns count of data rows given in the <BandName>. "
msgstr "COUNT(<NomBande>)/Retourne le nombre de lignes de <NomBande>. "
#: lr_const.sdescriptioncrlf
msgid "CRLF/Returns lineending character sequence."
msgstr ""
#: lr_const.sdescriptiondayof
msgid "DAYOF(<Date>)/Returns day number (1..31) of given <Date>."
msgstr "DAYOF(<Date>)/Renvoie le nombre de jours (1..31) de <Date>."

View File

@ -451,6 +451,10 @@ msgstr "COPY(<Karakterlánc>, <Kezdet>, <Hossz>)/A <Karakterlánc> <Hossz> hossz
msgid "COUNT(<BandName>)/Returns count of data rows given in the <BandName>. "
msgstr "COUNT(<Sávnév>)/A <Sávnév> oszlopban található adatsorok számát adja vissza."
#: lr_const.sdescriptioncrlf
msgid "CRLF/Returns lineending character sequence."
msgstr ""
#: lr_const.sdescriptiondayof
msgid "DAYOF(<Date>)/Returns day number (1..31) of given <Date>."
msgstr "DAYOF(<Dátum>)/A nap számát (1..31) adja vissza a <Dátum>-ból."

View File

@ -463,6 +463,10 @@ msgstr ""
msgid "COUNT(<BandName>)/Returns count of data rows given in the <BandName>. "
msgstr "COUNT(<BandName>)/Mengembalikan jumlah baris-data yang diberikan dalam <BandName>. "
#: lr_const.sdescriptioncrlf
msgid "CRLF/Returns lineending character sequence."
msgstr ""
#: lr_const.sdescriptiondayof
msgid "DAYOF(<Date>)/Returns day number (1..31) of given <Date>."
msgstr "DAYOF(<Date>)/Mengembalikan angka hari (1..31) dari tanggal <Date>."

View File

@ -455,6 +455,10 @@ msgstr "COPY(<Stringa>, <Posizione>, <Lunghezza>)/Ritorna <Lunghezza> dalla <Str
msgid "COUNT(<BandName>)/Returns count of data rows given in the <BandName>. "
msgstr "COUNT(<BandName>)/Ritorna ilnumero di righe dati in <BandName>. "
#: lr_const.sdescriptioncrlf
msgid "CRLF/Returns lineending character sequence."
msgstr ""
#: lr_const.sdescriptiondayof
msgid "DAYOF(<Date>)/Returns day number (1..31) of given <Date>."
msgstr "DAYOF(<Data>)/Ritorna il numero del giorno (1..31) della <Data>."

View File

@ -454,6 +454,10 @@ msgstr "COPY(<Tekstas>, <Vieta>, <Ilgis>)/Grąžina <Ilgis> simbolių iš <Tekst
msgid "COUNT(<BandName>)/Returns count of data rows given in the <BandName>. "
msgstr "COUNT(<JuostosPavadinimas>)/Grąžina duotame <JuostosPavadinimas> esančių eilučių kiekį."
#: lr_const.sdescriptioncrlf
msgid "CRLF/Returns lineending character sequence."
msgstr ""
#: lr_const.sdescriptiondayof
msgid "DAYOF(<Date>)/Returns day number (1..31) of given <Date>."
msgstr "DAYOF(<Data>)/Grąžina duotos <Data> dienos numerį (1..31)."

View File

@ -459,6 +459,10 @@ msgstr "COPY(<Tekst>, <Pozycja>, <Ilość>)/Zwraca <Ilość> znaków z <Tekst> z
msgid "COUNT(<BandName>)/Returns count of data rows given in the <BandName>. "
msgstr "COUNT(<NazwaBandy>)/Zwraca ilość wierszy z bazy danych dla danej <NazwaBandy>. "
#: lr_const.sdescriptioncrlf
msgid "CRLF/Returns lineending character sequence."
msgstr ""
#: lr_const.sdescriptiondayof
msgid "DAYOF(<Date>)/Returns day number (1..31) of given <Date>."
msgstr "DAYOF(<Data>)/Zwraca numer dnia (1..31) z podanej daty w <Data>."

View File

@ -444,6 +444,10 @@ msgstr ""
msgid "COUNT(<BandName>)/Returns count of data rows given in the <BandName>. "
msgstr ""
#: lr_const.sdescriptioncrlf
msgid "CRLF/Returns lineending character sequence."
msgstr ""
#: lr_const.sdescriptiondayof
msgid "DAYOF(<Date>)/Returns day number (1..31) of given <Date>."
msgstr ""

View File

@ -451,6 +451,10 @@ msgstr "COPY(<String>, <Posição>, <Tamanho>)/Retorna <Tamanho> caracteres de <
msgid "COUNT(<BandName>)/Returns count of data rows given in the <BandName>. "
msgstr "COUNT(<NomeBanda>)/Retorna a contagem de linhas de uma dada <NomeBanda>."
#: lr_const.sdescriptioncrlf
msgid "CRLF/Returns lineending character sequence."
msgstr ""
#: lr_const.sdescriptiondayof
msgid "DAYOF(<Date>)/Returns day number (1..31) of given <Date>."
msgstr "DAYOF(<Data>)/Retorna o numero do dia (1..31) de uma dada <Data>."

View File

@ -451,6 +451,10 @@ msgstr "COPY(<String>, <Position>, <Length>)/Возвращает <Length> си
msgid "COUNT(<BandName>)/Returns count of data rows given in the <BandName>. "
msgstr "COUNT(<BandName>)/Возвращает число строк данных в <BandName>. "
#: lr_const.sdescriptioncrlf
msgid "CRLF/Returns lineending character sequence."
msgstr ""
#: lr_const.sdescriptiondayof
msgid "DAYOF(<Date>)/Returns day number (1..31) of given <Date>."
msgstr "DAYOF(<Date>)/Возвращает номер дня (1..31) для заданной <Date>."

View File

@ -451,6 +451,10 @@ msgstr "COPY (<String>, <Position>, <Length>) / / <Position> ile başlayan <Stri
msgid "COUNT(<BandName>)/Returns count of data rows given in the <BandName>. "
msgstr "COUNT (<BandName>) / <BandName> içinde verilen veri satırı sayısını döndürür. "
#: lr_const.sdescriptioncrlf
msgid "CRLF/Returns lineending character sequence."
msgstr ""
#: lr_const.sdescriptiondayof
msgid "DAYOF(<Date>)/Returns day number (1..31) of given <Date>."
msgstr "DAYOF (<Tarih>) / <Tarih> Verilen tarihin gün numarasını (1..31) döndürür."

View File

@ -453,6 +453,10 @@ msgstr "COPY(<String>, <Position>, <Length>)/Повертає <Length> симв
msgid "COUNT(<BandName>)/Returns count of data rows given in the <BandName>. "
msgstr "COUNT(<BandName>)/Повертає кількість рядків даних у <BandName>."
#: lr_const.sdescriptioncrlf
msgid "CRLF/Returns lineending character sequence."
msgstr ""
#: lr_const.sdescriptiondayof
msgid "DAYOF(<Date>)/Returns day number (1..31) of given <Date>."
msgstr "DAYOF(<Date>)/Повертає номер дня (1..31) для заданої <Date>."

View File

@ -452,6 +452,10 @@ msgstr ""
msgid "COUNT(<BandName>)/Returns count of data rows given in the <BandName>. "
msgstr ""
#: lr_const.sdescriptioncrlf
msgid "CRLF/Returns lineending character sequence."
msgstr ""
#: lr_const.sdescriptiondayof
msgid "DAYOF(<Date>)/Returns day number (1..31) of given <Date>."
msgstr ""

View File

@ -10380,6 +10380,12 @@ begin
aValue:= frVariables[s];
Exit;
end else
if s1 = 'CRLF' then
begin
aValue := LineEnding;
Exit;
end
else
if s1 = 'REPORTTITLE' then
begin
aValue := Title;
@ -12622,6 +12628,7 @@ begin
// internal functions/operators
Add('COPY', true);
Add('STR', true);
Add('CRLF', true);
Add('INT', true);
Add('ROUND', true);
Add('FRAC', true);
@ -12661,6 +12668,7 @@ begin
AddFunctionDesc('POS', SStringCategory, SDescriptionPOS);
AddFunctionDesc('COPY', SStringCategory, SDescriptionCOPY);
AddFunctionDesc('STR', SStringCategory, SDescriptionSTR);
AddFunctionDesc('CRLF', SStringCategory, SDescriptionCRLF);
AddFunctionDesc('INPUT', SOtherCategory, SDescriptionINPUT);
AddFunctionDesc('MESSAGEBOX', SOtherCategory, SDescriptionMESSAGEBOX);

View File

@ -769,6 +769,9 @@ resourcestring
SDescriptionSTR = 'STR(<Value>)/'+
'Converts the given (numeric) <Value> in string.';
SDescriptionCRLF = 'CRLF/'+
'Returns lineending character sequence.';
SDescriptionINT = 'INT(<Value>)/'+
'Returns the integer part of floating point <Value>.';