DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: cuiqingbo
今日帖子: 25
在线用户: 12
导航: 论坛 -> 经典工具 斑竹:liumazi,ruralboy  
作者:
男 lsuper (lsuper) ★☆☆☆☆ -
盒子活跃会员
2017/5/14 2:42:31
标题:
System.ByteStrings for Delphi 10.2 浏览:4545
加入我的收藏
楼主: 1、通过研究 Andreas Hausladen 大神 Andy's Blog and Tools 的 http://andy.jgknet.de/blog/?s=System.ByteStrings,实现 Delphi 10.2 上的 System.ByteStrings
2、大神没有公开 System.ByteStrings 的制作方法,惯例我也只发布 dcu、o 文件
3、偷懒了,README.md 内容主要来自大神的 http://andy.jgknet.de/blog/2016/05/system-bytestrings-for-10-1-berlin/ 希望大神别介意哈

BTW:对 Andreas Hausladen 大神很崇拜,感谢大神为广大 Delphier 们带来的 IDEFixPack、VCLFixPack、FastDCC 等等牛货!谨以此 Delphi 10.2 的 System.ByteStrings 向大神致敬!

# System.ByteStrings

Unofficial ByteStrings Patch To Enable AnsiString Support In Delphi Next Generation

Current:

System.ByteStrings for 10.2 Berlin

Delphi 10.1+ Berlin reintroduces UTF8String and RawByteString for the NextGen compilers (Android, iOS, Linux). But ShortString and AnsiString are still missing. The compiler has full support for them but you can’t use them because they are declared with a leading underscore in the System.pas unit what makes them inaccessible because “_” is compiled to “@” what you can’t use for an identifier.

By patching DCU files it is possible to make those hidden types accessible.

The unit System.ByteStrings for 10.2 Berlin reintroduces

    ShortString
    AnsiString
    AnsiChar
    PAnsiChar
    PPAnsiChar
    UTF8String (XE5-10 Seattle)
    PUTF8String (XE5-10 Seattle)
    RawByteString (XE5-10 Seattle)
    PRawByteString (XE5-10 Seattle)

Usage:

Add the System.ByteStrings.dcu’s path to the compiler’s search path and add the unit to your uses clauses.

There is no *.PAS file because the DCU is patched with a hex editor to get access to the hidden types.
此帖子包含附件:lsuper_201751424231.rar 大小:7.4K
----------------------------------------------
-
作者:
男 lsuper (lsuper) ★☆☆☆☆ -
盒子活跃会员
2017/5/14 2:57:23
1楼: 希望对像我这样的,想快速移植老代码到 Linux64 的 Delphier 有点用 ~ ;>
----------------------------------------------
-
作者:
男 xlonger (xlonger) ★☆☆☆☆ -
普通会员
2017/5/14 8:38:58
2楼: 顶一下 牛人。
楼主 ,可以考虑做个直播了,
----------------------------------------------
我打的是酱油,而不是别的什么油。
我灌的是口水,而不是别的什么水。
我聊的折腾不是那个不折腾的折腾。
我说的阿娇不是那个邓玉娇的阿娇。
3个代表,6个为什么,9个肠胃炎。
D性强的领导干部都不喜欢热比娅。
我特别要讲的是,屁民网黄色论坛是我经常上网必选的 网站之一
作者:
男 hujiacheng ( 旺财) ★☆☆☆☆ -
普通会员
2017/5/14 13:56:21
3楼: 按此在新窗口浏览图片  我可以要源码么。。
----------------------------------------------
免费的FTPhttps://download-installer.cdn.mozilla.net/pub/firefox/releases/43.0/win64/zh-CN/https://cc.embarcadero.com/Author/575019>http://delphi-z.ruhttps://download-installer.cdn.mozilla.net/pub/firefox/releases/43.0/win64/zh-CN/https://cc.embarcadero.com/Author/575019>http://delphi.icm.edu.pl/ftp/https://download-installer.cdn.mozilla.net/pub/firefox/releases/43.0/win64/zh-CN/https://cc.embarcadero.com/Author/575019>http://delphi-z.ruhttps://download-installer.cdn.mozilla.net/pub/firefox/releases/43.0/win64/zh-CN/https://cc.embarcadero.com/Author/575019
作者:
男 shileizi (sl) ★☆☆☆☆ -
普通会员
2017/5/14 15:52:15
4楼: 10.2 tokyo现在能用吗,fix解决了BUG
是否可以用于生产环境了,还请大神解疑
----------------------------------------------
-
作者:
男 lsuper (lsuper) ★☆☆☆☆ -
盒子活跃会员
2017/5/14 19:58:05
5楼: @hujiacheng ( 旺财):确实没有源码,有 pas 也是用不了的(emb 的限制),需要如 Andreas Hausladen 大神所说的黑科技 ~
@shileizi (sl):也在摸索中,打算迁到 linux 玩玩 docker DevOps  ~
----------------------------------------------
-
作者:
男 jccddd (jcd) ★☆☆☆☆ -
普通会员
2017/5/14 23:54:58
6楼: 楼主,你怎么肯定这个andy就是 Andreas Hausladen?
----------------------------------------------
-上帝给我们的脑子编程,我们给电脑编程,可上帝却始终站在电脑一边...
作者:
男 feiyanm (feiyanm) ▲▲▲▲▲ -
普通会员
2017/5/15 14:00:51
7楼: 厉害了,还能这样玩???
那些汇编代码咋办???
----------------------------------------------
Delphi威武!千秋万代,一统江湖!Delphi威武!千秋万代,一统江湖!Delphi威武!千秋万代,一统江湖!Delphi威武!千秋万代,一统江湖!Delphi威武!千秋万代,一统江湖!Delphi威武!千秋万代,一统江湖!Delphi威武!千秋万代,一统江湖!我去WC吐一会儿去!
作者:
男 wj7927 (元素) ★☆☆☆☆ -
盒子活跃会员
2017/5/22 17:06:03
8楼: 赞,刚好要切换老程序用到。
----------------------------------------------
-
作者:
男 lsuper (lsuper) ★☆☆☆☆ -
盒子活跃会员
2019/3/7 17:19:32
9楼: 刚更新对 Delphi 10.3 RIO 的支持,基于 10.3.1 的 ~
----------------------------------------------
-
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行62.5毫秒 RSS