Applies to
Declaration
type TpmUpperCase = (pmuAscii, pmuAnsi, pmuUserDefined);
property UpperCaseType: TpmUpperCase;
Description
This property is used to specify how the TPlusMemo component obtains an uppercase version of its text content. Such uppercase text is needed inside of method FindTxt (when MatchCase is set to False) and when parsing for dynamic syntax highlighting.
Setting UpperCaseType to pmuAscii (the default) results in TPlusMemo using internally a call to StrUpper from SysUtils. This results in the fastest method, but it is unable to take account of locale variations in its way to get an uppercase version of a character. In Unicode mode (either with TPlusMemoU or under Delphi2009 and higher), only letters 'a' through 'z' get converted.
With pmuAnsi, procedure CharUpper form Windows is used, which is less efficient, but handles the uppercase conversion in a locale sensitive manner.
In the case of pmuUserDefined, global procedure variable UserUpperCaseProc is used, permitting the application programmer to control the conversion to uppercase that TPlusMemo performs internally.