Lasso Soft Inc. > Home

[ string->foldcase ]

Method

[String->FoldCase] modifies the base string in-place by converting all characters in the string appropriately for a case-insensitive comparison. This method performs the same operation that Lasso performs internally before comparing two strings.

  • Syntax
var('mystring') = 'String Value'
$mystring->foldcase
$mystring
Examples
  • Beginner

To change the case of a string for a comparison:

Use the [String->FoldCase] method. The following example outputs a sample string with its case folded for a comparison.

Code

var('mystring') = 'A quick white rhino'
$mystring->foldcase
$mystring

Result

a quick white rhino

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft