This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uses | |
Androidapi.JNI.JavaTypes, | |
Androidapi.JNI.GraphicsContentViewText, | |
FMX.Log, | |
FMX.Helpers.Android; | |
procedure StartIntent; | |
var | |
Intent: JIntent; | |
begin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Unit1; | |
interface | |
uses | |
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, | |
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls; | |
type | |
TForm1 = class(TForm) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program FizzBuzz; | |
uses | |
System.SysUtils; | |
var | |
i: Integer; | |
S: array [0.. 2] of String = ('', 'Fizz', 'Buzz'); | |
begin | |
for i := 1 to 100 do | |
Writeln(S[Ord(i mod 3 = 0)] + S[Ord(i mod 5 = 0) shl 1], i.ToString.Substring(0, (i mod 3) * (i mod 5) * $ff)); | |
end. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
最新版は github に引っ越しました | |
FMX.Log newest version moved to github. | |
https://github.com/freeonterminate/delphi/tree/master/FMXLog | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ToCharCode(const iText: String; const iUTF8: Boolean): String; | |
var | |
M: TMarshaller; | |
function ToHexString(const iByte: TPtrWrapper): String; | |
var | |
Chars: PByteArray; | |
i: Integer; | |
SB: TStringBuilder; | |
begin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program QuoeeeeUeuooowww; | |
const | |
MEM_SIZE = 1024; | |
MEM_HIGH = MEM_SIZE - 1; | |
CMD_NEXT = 'く'; //'>'; | |
CMD_PREV = 'う'; //'<'; | |
CMD_INC = 'w'; //'+'; | |
CMD_DEC = 'お'; //'-'; | |
CMD_OUTPUT = 'ー'; //'.'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ARGB を ABGR に変換 | |
// IsRev が True の時 ABGR(PixelFormat が pfA8B8G8R8) | |
function GetColor(const iColor: TAlphaColor): TAlphaColor; | |
{$IFDEF CPUX86} | |
asm | |
cmp byte ptr IsRev, 0 | |
jz @@exit | |
rol eax, 8 | |
bswap eax | |
@@exit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program Project1; | |
uses | |
System.SysUtils; | |
type | |
// Sample Interface | |
IFoo = interface | |
['{174C7089-888D-4B3A-A348-DBAEC0AA70A5}'] | |
function GetBar: String; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit uNSAppSample; | |
interface | |
implementation | |
{$IFDEF MACOS} | |
uses | |
// Delphi の RTL | |
System.SysUtils, System.Generics.Collections, |