Autor Beitrag
jerilynn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 22



BeitragVerfasst: Sa 06.01.07 14:31 
Hallo,

ich möchte herausfinden ob es sich bei einem Unicodezeichen um einen Groß- oder um einen Kleinbuchstaben handelt? Gibt es dazu eine Möglichkeit? Hintergrund ist das ich eine Funktion schreiben möchte die die Groß- und Kleinschreibung in einem Widestring vertauscht. Vieleicht gibt es da aber auch schon eine fertige Funktion?

lynn
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Sa 06.01.07 14:41 
WideLowerCase sollte helfen.

Die Funktion gibts zumindest bei Delphi7. Ansonsten gibts bei den TNTs umfangreiche Routinen für Widestrings.

_________________
We are, we were and will not be.
jerilynn Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 22



BeitragVerfasst: Sa 06.01.07 15:18 
WideLowerCase ist doch nur zum umwandeln da? Wie kann mir das bei meinem Problem helfen?
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Sa 06.01.07 15:30 
WideLowerCase lässt einen kleinen Buchstaben so, wie er ist und macht einen Großbuchstaben klein. Diese Veränderung kannst Du überprüfen.

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 06.01.07 15:30 
dann is alles klein und du hast n problem weniger!^^

lg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
jerilynn Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 22



BeitragVerfasst: Sa 06.01.07 15:39 
Ahhhh jetzt geht mir ein Licht auf :) Das probiere ich doch gleich mal aus.
jerilynn Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 22



BeitragVerfasst: Sa 06.01.07 15:51 
ja so gehts. Wenn es interessiert hier ist die fertige Quick and Dirty Funktion:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
function StringCaseInvert(const S: WideString):WideString;
 var
  i: Integer;
  testChar: WideString;
  newString: WideString;
begin
  for i := 1 to Length(S) do
  begin
    testChar := S[i];
    if SynWideUpperCase(testChar) = testChar then newString := newString + SynWidelowerCase(testChar)
    else newString := newString + SynWideUpperCase(testChar);
  end;
  Result := newString;
end;