Skip to main content
All docs
V24.2

TdxDiacriticStringOptions.NormalizationMode Property

Specifies the string normalization algorithm used for string comparison in diacritic-insensitive mode.

Declaration

class property NormalizationMode: TdxDiacriticStringNormalizationMode read; write; default TdxDiacriticStringNormalizationMode.Fast;

Property Value

Type Default Description
TdxDiacriticStringNormalizationMode Fast

The active string normalization mode.

Remarks

Diacritic-insensitive string comparison in all data controllers[1] and text field-based editors relies on the fast DevExpress Unicode string normalization algorithm.

You can set the NormalizationMode property to TdxDiacriticStringNormalizationMode.Fast or TdxDiacriticStringNormalizationMode.System to switch between DevExpress and system string normalization modes for diacritic mark-insensitive comparison operations.

Tip

We recommend that you configure string comparison settings in the initialization section of the main application as demonstrated in the code example below. If you need to change these settings while the application is running, refresh all data controllers to apply the changes.

Code Example

The following code example configures global diacritic mark-related settings at application startup:

uses
  dxCore;
// ...
begin
  TdxDiacriticStringOptions.ComparisonMode := TdxDiacriticStringComparisonMode.Insensitive;
  TdxDiacriticStringOptions.NormalizationMode := TdxDiacriticStringNormalizationMode.System;
  // ...
  Application.Initialize;
  Application.MainFormOnTaskBar := True;
  Application.CreateForm(TMyForm, MyForm);
  Application.Run;
end.

Default Value

The NormalizationMode property’s default value is TdxDiacriticStringNormalizationMode.Fast.

Footnotes
  1. Except for server mode-based data controllers.

See Also