From Clomosy Docs

No edit summary
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
function AnsiLowerCase(const MixedString string):string;
<div class="alert alert-ligth border border-3 border-primary-subtle rounded-5 p-4 shadow-sm" role="alert">
function AnsiLowerCase(const S: string): string;
</div>


The AnsiLowerCase function creates a copy of String with all letters converted to lower case. All Ansi commands support multi-byte and accented characters.<br>
Returns a string that is a copy of the given string converted to lowercase.<br>


'''Syntax:'''<br>
AnsiLowerCase returns a string that is a copy of the given string converted to lowercase. The conversion uses the current locale. This function supports multi-byte character sets.<br>
AnsiLowerCase(StringValue)


'''Example:'''<br>
 
'''var'''<br>
<b>Example</b><br>
  MyForm:TclForm;
<pre>
  SimpleString : String;<br>
var
  '''begin'''
  SimpleString : String;
  MyForm := TclForm.Create(Self);
   
  SimpleString := '''AnsiLowerCase'''('I am learning CLOMOSY.');
{
  ShowMessage(SimpleString);<br>
  SimpleString = AnsiLowerCase('I am learning CLOMOSY.');
  MyForm.Run;<br>
  ShowMessage(SimpleString);
'''end;'''
}
</pre>
 
<b>Output:</b><br>
<div class="alert alert-success" role="alert" data-bs-theme="light">
i am learning clomosy.
</div>
 
<h2> See Also </h2>
* [[System_Library#String_Functions | String Functions]]
{{#seo:|title=AnsiLowerCase Using in Clomosy - Clomosy Docs}}
{{#seo:|description=AnsiLowerCase converts a string to lowercase based on the current locale, supporting multi-byte character sets.}}

Latest revision as of 14:05, 24 December 2024

Returns a string that is a copy of the given string converted to lowercase.

AnsiLowerCase returns a string that is a copy of the given string converted to lowercase. The conversion uses the current locale. This function supports multi-byte character sets.


Example

 var
   SimpleString : String;
 
 {
   SimpleString = AnsiLowerCase('I am learning CLOMOSY.');
   ShowMessage(SimpleString);
 }

Output:

See Also