Gentee Programming Language > Documentation > Libraries Download documentation

str.trim

Delete the specified character on either sides of a string.
 
str str.trim(
      uint   ch,
      uint   flag
)

Parameters

chThe character being deleted.
flagдыруш for deletion.
$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

Return value

Returns the object which method has been called.

See also

    Strings


 Copyright © 2004-2006 Gentee Inc. All rights reserved.