@@ -228,15 +228,15 @@ function StrSplit(const Str: UnicodeString; const Delim: UnicodeString;
228
228
// / offsets each line using spaces to form a left margin of size given by
229
229
// / Margin.</summary>
230
230
// / <remarks>Output lines are separated by CRLF.</remarks>
231
- function StrWrap (const Str: UnicodeString; const MaxLen, Margin: Integer ):
231
+ function StrWrap (const Str: UnicodeString; const MaxLen, Margin: UInt16 ):
232
232
UnicodeString; overload;
233
233
234
234
// / <summary>Word wraps each paragraph of text in Paras so that each line of a
235
235
// / paragraph has lines of maximum length MaxLineLen and is offset by the
236
236
// / number of spaces gvien by Margin. Blanks lines are used to separate
237
237
// / output paragraphs iff SeparateParas is true.</summary>
238
238
// / <remarks>Output lines are separated by CRLF.</remarks>
239
- function StrWrap (const Paras: TStrings; const MaxLineLen, Margin: Integer ;
239
+ function StrWrap (const Paras: TStrings; const MaxLineLen, Margin: UInt16 ;
240
240
const SeparateParas: Boolean): UnicodeString; overload;
241
241
242
242
// / <summary>Checks in string Str forms a valid sentence and, if not, adds a
@@ -773,7 +773,7 @@ function StrWindowsLineBreaks(const Str: UnicodeString): UnicodeString;
773
773
Result := StrReplace(Result, LF, CRLF);
774
774
end ;
775
775
776
- function StrWrap (const Str: UnicodeString; const MaxLen, Margin: Integer ):
776
+ function StrWrap (const Str: UnicodeString; const MaxLen, Margin: UInt16 ):
777
777
UnicodeString;
778
778
var
779
779
Word: UnicodeString; // next word in input Str
@@ -823,7 +823,7 @@ function StrWrap(const Str: UnicodeString; const MaxLen, Margin: Integer):
823
823
end ;
824
824
end ;
825
825
826
- function StrWrap (const Paras: TStrings; const MaxLineLen, Margin: Integer ;
826
+ function StrWrap (const Paras: TStrings; const MaxLineLen, Margin: UInt16 ;
827
827
const SeparateParas: Boolean): UnicodeString; overload;
828
828
var
829
829
Para: string;
0 commit comments