Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodCode SnippetDelphiFiremonkeyIOSOSXWindows

Use AnsiString And AnsiChar In Delph XE5 Firemonkey On Android And IOS

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE5 Firemonkey Ansi String Mobile | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSOndrej Pokorny from Kluug.net Software Solutions has a new library up called ORawByteString and what it does is enable you to use AnsiString on mobile devices in Delphi XE5 Firemonkey. Previously there was a way to use AnsiStrings in Delphi XE5 but I haven’t seen a library like this before. He also says that he has done some performance testing with his library and hasn’t seen any significant drawbacks. In addition to AnsiString it also allows you to use PAnsiChar and AnsiChar in your mobile project on Android and IOS. The reason why this is useful is because if you have a lot of older code this makes it much easier to port your older code forward (or some third party code that is no longer supported by the author). The only function that changed was Copy needs to be called via AnsiCopy. Here is some text from his site explaining ORawByteString:

ORawByteString.pas allows you to:

  • use 8-bit AnsiString and RawByteString on mobile platforms.
  • use 8-bit PAnsiChar on mobile platforms.
  • use 8-bit AnsiChar on mobile platforms.
  • use the same AnsiString code on desktop and mobile.
  • -> no IDE hacking is needed :)

It features it's own text functions like AnsiInsert(), AnsiCopy(), AnsiDelete(), AnsiLength(), Pos(), LowerCase() etc. to offer maximum performance.
Head over and download the ORawByteString library and test it out porting your older code to mobile.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts
DelphiDemoFiremonkeyLinuxOSXShowcaseWindows

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging

DelphiFiremonkeyShowcaseUtilityWindows

Unleashing Creativity With Song Writer AI: A Deep Dive

DelphiFiremonkeyShowcaseWindows

How To Build Stable Diffusion Text To Image Prompts

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes

Sign up for our Newsletter and
stay informed

Leave a Reply