|
Insert characters repeatedly at regular intervals.
syntax
RepeatInsertStr(
str,
index,
insertstr
[,supportmultibyte = FALSE]
)
Parameters
str
|
|
Type:
|
character
|
|
The string to be inserted.
|
index
|
|
Type:
|
Number
|
|
Inserts characters at specified character intervals (number of bytes).
|
insertstr
|
|
Type:
|
character
|
|
The string to insert.
|
supportmultibyte
|
|
Type:
|
Boolean
|
|
Whether multibyte characters are supported.
|
Return Value
|
|
Type:
|
character
|
|
The string after insertion.
|
Explanation
This is used when you want to split a long string by inserting line breaks at regular intervals. If supportmultibyte is set to T, the processing will be performed to prevent garbled characters if the boundary to be split is the second byte of a multibyte string.
|
Supported
reference
StrLen
MBStrLen
LeftStr
RightStr
MidStr
FindStr
IsLike
InsertStr
CombineStr
DivideStr
TrimLeftStr
TrimRightStr
UpperStr
LowerStr
ReplaceStr
ReverseStr
CStrToArray
CArrayToStr
CCsvToArray
CArrayToCsv
Chr
Ascii
RET
IntStrs
IsFullWidthChar
MeasureStr
|