EnglishРусский  
 Share/Save/Bookmark
 

ustr.trim...

Trimming a unicode string.

method ustr ustr.trim (
   uint symbol,
   uint flag
)

Parameters

symbol The character being deleted.
flag Flags.
$TRIM_LEFTTrim the left side.
$TRIM_RIGHTTrim the right side.
$TRIM_ONEDelete only one character.
$TRIM_PAIRIf the character being deleted is a bracket, look the closing bracket on the right
$TRIM_SYSDelete characters less or equal space.

Return value

Returns the object which method has been called.


ustr.trimrspace

Deleting spaces on the right.

method ustr ustr.trimrspace()

ustr.trimspace

Deleting spaces on the both sides.

method ustr ustr.trimspace()

Related links

Source

Edit