Set Language for String Processing?

Fraser Gordon fraser.gordon at runrev.com
Tue May 6 07:31:35 EDT 2014


On 6 May 2014, at 12:26, Peter W A Wood <peterwawood at gmail.com> wrote:

> 
> PS I was truly impressed to find that comparing pre-composed and decomposed characters worked without the need for the strings to be normalised. For example, this test passes:
> 
> 	startTest "Unicode1"
>   	put numToCodepoint(0xE7) into tPrecomposed
>  	put  "c" & numToCodepoint(0x0327) into tDecomposed
>  	assertEqual tPrecomposed, tDecomposed
> 	endTest

If you do it again after doing a "set the formSensitive to true", you'll find they are no longer equal - formSensitive is the equivalent to caseSensitive but for normalisation.

Regards,
Fraser





More information about the Use-livecode mailing list