![]() |
Umlaute aus einem String verändern
Moin Leute,
ich habe gerade eine Blokade. Ich möchte gerne aus dem Wort "Hölle" das Wort "Hoelle" machen. Also das keine Umlaute mehr enthalten sind. Kann mir einer mal bitte auf die Sprünge helfen. Wäre nett. Danke. Sven |
Re: Umlaute aus einem String verändern
|
Re: Umlaute aus einem String verändern
ich habe delphi 3 und er kennt Replacestring nicht oder ich bin zu doof.
Gibt es noch eine andere Möglichkeit? |
Re: Umlaute aus einem String verändern
|
Re: Umlaute aus einem String verändern
Hab mir dazu mal was geschrieben:
Delphi-Quellcode:
function AnsiInspect(S,look_for,replace_with : string) : string;
var i : Integer; D : AnsiString; begin D:=''; while Length(S)>0 do begin i:=Pos(look_for,S); if i=0 then begin D := D + S; S:=''; end else begin D := D + Copy(S,1,i-1) + replace_with; Delete(S,1,i-1 + Length(look_for)); end; end; Result := D; end; var InpStr,OutStr : string; begin ..... // InpStr füllen OutStr:=AnsiInspect(InpStr,'ö','oe'); OutStr:=AnsiInspect(OutStr,'Ö','Oe'); OutStr:=AnsiInspect(OutStr,'ä','ae'); OutStr:=AnsiInspect(OutStr,'Ä','Ae'); ..... end. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:43 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz