Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | str.adjustLineBreaks SEARCH    

  Functions
str.adjustLineBreaks
str.char
str.comma
str.escape
str.explode
str.implode
str.left
str.len
str.lower
str.pos
str.pos.ex
str.replace
str.right
str.sub
str.trim
str.unescape
str.upper
str.wrapText

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
str.adjustLineBreaks

Language: MioScript
Product: MioFactory


Syntax

str.adjustLineBreaks(sourceString)


Parameters

STRINGsourceStringSource string.


Return value

String with adjusted lines breaks.



Description

Adjusts all line breaks in the given string S to be true CR/LF sequences.

The function changes any CR characters not followed by a LF and any LF characters not preceded by a CR into CR/LF pairs.
It also converts LF/CR pairs to CR/LF pairs. The LF/CR pair is common in Unix text files.