aboutsummaryrefslogtreecommitdiffstats
path: root/unicode/src/screens/UScreenEditConvert.pas
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-11-07 20:49:01 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-11-07 20:49:01 +0000
commit17614ea059162f432f7feba5f39329667a335fa6 (patch)
treeaa95668867bf58d6bd708bfcb5b3f9db38dc59f8 /unicode/src/screens/UScreenEditConvert.pas
parente520f12663f97a3ca7e609d0d6f6bf91dc88e675 (diff)
downloadusdx-17614ea059162f432f7feba5f39329667a335fa6.tar.gz
usdx-17614ea059162f432f7feba5f39329667a335fa6.tar.xz
usdx-17614ea059162f432f7feba5f39329667a335fa6.zip
- WideStringUpperCase moved to UUnicodeUtils.pas
- WideCharUpperCase removed as single characters (code-point) can be represented by two WideChars (surrogates). Convert to UCS4 instead (one code-point <-> one UCS4Char). - UCS4 functions added to UUUnicodeUtils - string replaced with UTF8String (although it's just a typedef) to mark UTF8 strings. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1507 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--unicode/src/screens/UScreenEditConvert.pas50
1 files changed, 27 insertions, 23 deletions
diff --git a/unicode/src/screens/UScreenEditConvert.pas b/unicode/src/screens/UScreenEditConvert.pas
index 8cc6c59d..712817c3 100644
--- a/unicode/src/screens/UScreenEditConvert.pas
+++ b/unicode/src/screens/UScreenEditConvert.pas
@@ -33,17 +33,18 @@ interface
{$I switches.inc}
-uses UMenu,
- SDL,
- {$IFDEF UseMIDIPort}
- MidiFile,
- MidiOut,
- {$ENDIF}
- ULog,
- USongs,
- USong,
- UMusic,
- UThemes;
+uses
+ UMenu,
+ SDL,
+ {$IFDEF UseMIDIPort}
+ MidiFile,
+ MidiOut,
+ {$ENDIF}
+ ULog,
+ USongs,
+ USong,
+ UMusic,
+ UThemes;
type
TNote = record
@@ -93,7 +94,7 @@ type
MidiEvent: pMidiEvent;
MidiOut: TMidiOutput;
{$ENDIF}
-
+
Song: TSong;
Lines: TLines;
BPM: real;
@@ -106,7 +107,7 @@ type
{$IFDEF UseMIDIPort}
procedure MidiFile1MidiEvent(event: PMidiEvent);
{$ENDIF}
-
+
function SelectedNumber: integer;
constructor Create; override;
procedure onShow; override;
@@ -116,15 +117,18 @@ type
end;
implementation
-uses UGraphic,
- SysUtils,
- UDrawTexture,
- TextGL,
- UFiles,
- UMain,
- UIni,
- gl,
- USkins;
+
+uses
+ SysUtils,
+ gl,
+ UGraphic,
+ UDrawTexture,
+ TextGL,
+ UFiles,
+ UMain,
+ UIni,
+ USkins,
+ UUnicodeUtils;
function TScreenEditConvert.ParseInput(PressedKey: Cardinal; CharCode: WideChar; PressedDown: Boolean): Boolean;
begin
@@ -132,7 +136,7 @@ begin
If (PressedDown) Then
begin // Key Down
// check normal keys
- case WideCharUpperCase(CharCode)[1] of
+ case WideStringUpperCase(CharCode)[1] of
'Q':
begin
Result := false;