Documentation
Back to website >

MatchNoUpperStr (Pascal-Script)

Description

The function MatchNoUpperStr replaces all umlauts in their equivalents ue, oe etc.

Syntax

function MatchNoUpperStr(const S: string): string;

Arguments

This function replaces all umlauts in their equivalents. No conversion to upper/lower case is performed.

The following values apply to the code:

Input value Result
Ä AE
ä ae
Ö OE
ö oe
Ü UE
ü ue
ß ss

Excample

var
  S1: String;
  S2: String;
begin
  S1:='schöner Ärger';
  S2:=MatchNoUpperStr(S1);
  ShowMessage(s2);
end;

Rules to understand the script can be found here.

The text 'schöner Ärger' is assigned to the string variable S1. The MatchNoUpperStr function converts the umlauts according to the table above. The result is assigned to S2.

ShowMessage shows: schoener AErger