summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-11-12 13:40:29 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-11-12 13:40:29 +0000
commit62d59b10e9a5ad070b602ec33f2f3b748678fc04 (patch)
tree387fef8f44715366bfa0f1d28af718dc8346726c /src/corelib
parent3df54aadede2a405e5d4bec05e83b7e6c33893b7 (diff)
downloadfpGUI-62d59b10e9a5ad070b602ec33f2f3b748678fc04.tar.xz
* new fpgCharAt() function
* Renamed EditXXX's DecimalSeparator and ThousandSeparatar properties to not conflict with the global variables in SysUtils. * Added EditCurrency, EditFloat and EditInteger to the UI Designer palette. I still have issues with TfpgChar type, so you have to use the 'unknow' memo in Object Inspector. * Minor changes in edits demo to compile again after the above changes.
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/fpg_stringutils.pas9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/corelib/fpg_stringutils.pas b/src/corelib/fpg_stringutils.pas
index 30ddff14..f5e6f817 100644
--- a/src/corelib/fpg_stringutils.pas
+++ b/src/corelib/fpg_stringutils.pas
@@ -23,7 +23,7 @@ unit fpg_stringutils;
interface
uses
- Classes, SysUtils;
+ Classes, SysUtils, fpg_base;
function UTF8CharacterLength(p: PChar): integer;
@@ -45,6 +45,8 @@ function Pos8(const SearchForText, SearchInText: string): integer;
procedure Delete8(var S: string; Index, Size: integer);
procedure Insert8(const Source: string; var S: string; Index: integer);
+function fpgCharAt(const s: TfpgString; Index: integer): TfpgChar;
+
implementation
@@ -310,6 +312,11 @@ begin
UTF8Insert(Source, S, Index);
end;
+function fpgCharAt(const s: TfpgString; Index: integer): TfpgChar;
+begin
+ Result := UTF8Copy(s, Index, 1);
+end;
+
end.