ReplaceUmlautsWithAscii

Methode (Function) · gibt String zurück

ReplaceUmlautsWithAscii ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK.

Beschreibung (Originaltext der englischen SDK-Dokumentation): Converts a string to ASCII-like text by removing diacritical marks (Unicode normalization) and replacing ß with ss.

Rückgabe: The converted text.

Deklaration

Public Function ReplaceUmlautsWithAscii(ByVal input As String) As String

Parameter

NameTypPflichtBeschreibung
inputStringerforderlichText to convert.

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim input As String = ""
Dim ergebnis = alo.ReplaceUmlautsWithAscii(input)

Aufruf (C#)

var zfStandard = Aloaha_ZUGFeRD.iXML.ZUGFeRDVersion.xInvoice;   // Optional ByRef im Konstruktor: in C# mit ref übergeben
var alo = new Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, false, "IHR-LIZENZSCHLUESSEL", ref zfStandard);
string input = "";
var ergebnis = alo.ReplaceUmlautsWithAscii(input);

Quelle: XML-Dokumentationskommentare des Aloaha ZUGFeRD SDK (xml.vb). Gleiche Signatur in VB6/VBA über COM. In C# werden ByRef-Parameter mit ref übergeben, VB-Eigenschaften mit Parametern heißen get_…/set_…, optionale Parameter können entfallen.