{"id":1444,"date":"2014-12-12T18:37:56","date_gmt":"2014-12-12T10:37:56","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=1444"},"modified":"2014-12-12T18:37:56","modified_gmt":"2014-12-12T10:37:56","slug":"qmacros-%e5%9f%ba%e6%9c%ac%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e8%af%b4%e6%98%8e","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=1444","title":{"rendered":"[QMacros]-\u57fa\u672c\u4f7f\u7528\u65b9\u6cd5\u8bf4\u660e"},"content":{"rendered":"<p>1\u3001\u521b\u5efa\u4e00\u4e2aTQMacroManager\u5bf9\u8c61\uff0c\u5b83\u7528\u6765\u7ba1\u7406\u6240\u6709\u7684\u5b8f\u3002\u540e\u9762\u6240\u6709\u7684\u64cd\u4f5c\u90fd\u5fc5\u9700\u57fa\u4e8e\u5b83\u3002<\/p>\n<p>[Delphi]<\/p>\n<pre class=\"lang:delphi decode:true\">FMacroMgr:=TQMacroManager.Create;<\/pre>\n<p>[C++]<\/p>\n<pre class=\"lang:delphi decode:true \">FMacroMgr=new TQMacroManager;<\/pre>\n<p>2\u3001\u5c06\u57fa\u672c\u7684\u5b8f\u5165\u6808\uff0c\u6ce8\u610f\u786e\u5b9a\u5b8f\u7684\u7c7b\u578b\u3002\u5177\u4f53\u8bf7\u53c2\u8003\u4e3b\u9898\u4e2d\u7684\u3010QMacros\u5b8f\u7684\u503c\u7a33\u5b9a\u6027\u9009\u9879\u8be6\u89e3\u3011\u4e00\u6587\u7684\u8bf4\u660e\u3002<\/p>\n<p>\uff081\uff09\u3001\u5165\u6808\u5e38\u91cf<\/p>\n<p>[Delphi]<\/p>\n<pre class=\"lang:delphi decode:true\">FMacroMgr.Push(\u5b8f\u540d\u79f0,\u5b8f\u53d6\u503c)<\/pre>\n<p>[C++]<\/p>\n<pre class=\"lang:c++ decode:true \">FMacroMgr-&gt;Push(\u5b8f\u540d\u79f0,\u5b8f\u53d6\u503c);<\/pre>\n<p>(2)\u3001\u5165\u6808\u901a\u8fc7\u51fd\u6570\u52a8\u6001\u8fd4\u56de\u503c\u7684\u5b8f<\/p>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b9a\u4e49\u4e00\u4e2a\u5b8f\u7684\u53d6\u503c\u51fd\u6570\uff0c\u76ee\u524d\u53ea\u652f\u6301\u7c7b\u7684\u6210\u5458\u51fd\u6570\uff0c\u9996\u5148\u770b\u4e0b\u56de\u8c03\u51fd\u6570\u7684\u7c7b\u578b\u8bf4\u660e\u3002<\/p>\n<p>[Delphi]<\/p>\n<pre class=\"lang:delphi decode:true \">\/\/\/ &lt;summary&gt;\u67e5\u627e\u52a8\u6001\u5b8f\u7684\u503c\u65f6\u7684\u901a\u8fc7\u56de\u8c03\u51fd\u6570\u83b7\u53d6\u76f8\u5e94\u7684\u503c&lt;\/summary&gt;\r\n\/\/\/ &lt;param name=\"AMacro\"&gt;\u5b8f&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AQuoter\"&gt;\u5f15\u53f7\u7c7b\u578b\uff0c\u503c\u53ef\u80fd\u662f#0(\\0)\u6216\u82f1\u6587\u7684\u5355\u5f15\u53f7\u6216\u53cc\u5f15\u53f7&lt;\/param&gt;\r\n\r\nTQMacroValueFetchEvent = procedure(AMacro: TQMacroItem; const AQuoter: QCharW)<\/pre>\n<p>[C++]<\/p>\n<pre class=\"lang:delphi decode:true\">\/\/\/ &lt;summary&gt;\u67e5\u627e\u52a8\u6001\u5b8f\u7684\u503c\u65f6\u7684\u901a\u8fc7\u56de\u8c03\u51fd\u6570\u83b7\u53d6\u76f8\u5e94\u7684\u503c&lt;\/summary&gt;\r\n\/\/\/ &lt;param name=\"AMacro\"&gt;\u5b8f&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AQuoter\"&gt;\u5f15\u53f7\u7c7b\u578b\uff0c\u503c\u53ef\u80fd\u662f#0(\\0)\u6216\u82f1\u6587\u7684\u5355\u5f15\u53f7\u6216\u53cc\u5f15\u53f7&lt;\/param&gt;\r\ntypedef void __fastcall (__closure *TQMacroValueFetchEvent)(TMacroItem *AMacro,const WideChar &amp;AQuoter);<\/pre>\n<p>\u6839\u636e\u4e0a\u9762\u7684\u58f0\u660e\uff0c\u6211\u4eec\u58f0\u660e\u81ea\u5df1\u7684\u56de\u8c03\u51fd\u6570\u5b9e\u73b0\uff0c\u7136\u540e\u901a\u8fc7Push\u51fd\u6570\u5165\u6808\u3002\u5165\u6808\u65f6\uff0c\u53ef\u4ee5\u4e3a\u51fd\u6570\u6307\u5b9a\u4e00\u4e2a\u7528\u6237\u81ea\u5b9a\u4e49\u7684\u9644\u52a0\u6570\u636e\uff0c\u5728\u56de\u8c03\u51fd\u6570\u4e2d\u53ef\u4ee5\u901a\u8fc7TQMacroItem\u7684Value.Value\u7684Tag\u6210\u5458\u6765\u8bbf\u95ee\u3002<\/p>\n<p>\u5165\u6808\u56de\u8c03\u51fd\u6570\u5b9e\u73b0\u7684\u5b8f\u65f6\uff0c\u518d\u6b21\u5f3a\u8c03\u9700\u8981\u6ce8\u610f\u5176\u51fd\u6570\u503c\u7684\u7a33\u5b9a\u6027\u3002\u9ed8\u8ba4\u503c\u662f\u8003\u8651\u6700\u7cdf\u7cd5\u7684\u60c5\u51b5\uff0c\u4f7f\u7528\u7684mvVolatile\uff0c\u4f46\u5b9e\u9645\u4e0a\uff0c\u5982\u679c\u5728\u4e00\u6b21\u66ff\u6362\u64cd\u4f5c\u4e2d\uff0c\u5176\u503c\u662f\u4e0d\u53d8\u7684\uff0c\u90a3\u4e48\uff0cmvStable\u662f\u6700\u4f73\u7684\u9009\u62e9\u3002\u5982\u679c\u65e0\u8bba\u4f55\u65f6\u59cb\u7ec8\u4e0d\u53d8\uff0c\u90a3\u4e48\u76f4\u63a5\u8c03\u7528\u7b2c\u4e00\u79cd\u65b9\u5f0fPush\u6211\u60f3\u66f4\u5408\u9002\uff0c\u6216\u8005\u8bbe\u5b9a\u7c7b\u578b\u4e3amvImmutable\u3002<\/p>\n<p>\u6211\u4eec\u770b\u4e0b\u8fd9\u79cdPush\u65b9\u6cd5\u7684\u58f0\u660e\uff1a<\/p>\n<p>[Delphi]<\/p>\n<pre class=\"lang:delphi decode:true \">\/\/\/ &lt;summary&gt;\u5165\u6808\u6307\u5b9a\u540d\u79f0\u548c\u503c\u7684\u5b8f\u5b9a\u4e49&lt;\/summary&gt;\r\n\/\/\/ &lt;param name=\"AName\"&gt;\u5b8f\u540d\u79f0&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AOnFetchValue\"&gt;\u83b7\u53d6\u5b8f\u5bf9\u5e94\u7684\u503c\u65f6\u8c03\u7528\u7684\u56de\u8c03\u51fd\u6570&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AVolatile\"&gt;\u51fd\u6570\u8fd4\u56de\u503c\u7684\u7a33\u5b9a\u6027&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"ATag\"&gt;\u7528\u6237\u9644\u52a0\u7684\u6807\u7b7e\u6570\u636e&lt;\/param&gt;\r\nprocedure Push(const AName: QStringW; AOnFetchValue: TQMacroValueFetchEvent;\r\n      AVolatile: TQMacroVolatile = mvVolatile; ATag: IntPtr = 0);<\/pre>\n<p>[C++]<\/p>\n<pre class=\"lang:c++ decode:true\">\/\/\/ &lt;summary&gt;\u5165\u6808\u6307\u5b9a\u540d\u79f0\u548c\u503c\u7684\u5b8f\u5b9a\u4e49&lt;\/summary&gt;\r\n\/\/\/ &lt;param name=\"AName\"&gt;\u5b8f\u540d\u79f0&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AOnFetchValue\"&gt;\u83b7\u53d6\u5b8f\u5bf9\u5e94\u7684\u503c\u65f6\u8c03\u7528\u7684\u56de\u8c03\u51fd\u6570&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AVolatile\"&gt;\u51fd\u6570\u8fd4\u56de\u503c\u7684\u7a33\u5b9a\u6027&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"ATag\"&gt;\u7528\u6237\u9644\u52a0\u7684\u6807\u7b7e\u6570\u636e&lt;\/param&gt;\r\nvoid __fastcall Push(const UnicodeString &amp;AName,TQMacroValueFetchEvent AOnFetchValue,TQMacroVolatile AVolatile=mvVolatile,NativeInt ATag=0);\r\n<\/pre>\n<p>\u5bf9\u4e8eDelphi 2007\u53ca\u66f4\u65e9\u7684\u7248\u672c\uff0cUnicodeString\u66ff\u6362\u4e3aWideString\uff0c\u540e\u9762\u7684\u4ee3\u7801\u89c4\u5219\u76f8\u540c\uff0c\u8bf7\u81ea\u884c\u8111\u8865\u3002<\/p>\n<p>3\u3001\u6267\u884c\u6a21\u677f\u7684\u7f16\u8bd1\u53ca\u66ff\u6362\u64cd\u4f5c<\/p>\n<p>\uff081\uff09\u3001\u7b80\u5316\u7248\u63a5\u53e3<\/p>\n<p>TQMacroManager\u63d0\u4f9b\u4e86\u4e24\u4e2aReplace\u51fd\u6570\uff0c\u5206\u522b\u5bf9\u5e94\u4e8e\u4e24\u4e2a\u7248\u672c\u7684\u66ff\u6362\u51fd\u6570\u3002\u5176\u4e2d\u7b80\u5316\u7248\u7684\u63a5\u53e3\u5b9a\u4e49\u5982\u4e0b\uff1a<\/p>\n<p>[Delphi]<\/p>\n<pre class=\"lang:delphi decode:true\">\/\/\/ &lt;summary&gt;\u4f7f\u7528\u5b8f\u5b9a\u4e49\u66ff\u6362\u6307\u5b9a\u7684\u6587\u672c&lt;\/summary&gt;\r\n\/\/\/ &lt;param name=\"AText\"&gt;\u8981\u88ab\u66ff\u6362\u7684\u6587\u672c&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AMacroStart\"&gt;\u5b8f\u5b9a\u4e49\u8d77\u59cb\u5b57\u7b26\uff0c\u53ef\u4ee5\u4e0e\u7ed3\u675f\u5b57\u7b26\u4e0d\u540c&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AMacroEnd\"&gt;\u5b8f\u5b9a\u4e49\u7ed3\u675f\u5b57\u7b26&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AFlags\"&gt;\u6807\u5fd7\u4f4d\uff0c\u53ef\u53d6 MRF_IN_DBL_QUOTER \u548c MRF_IN_SINGLE_QUOTER \u7684\u7ec4\u5408&lt;\/param&gt;\r\n\/\/\/ &lt;returns&gt;\u8fd4\u56de\u66ff\u6362\u5b8c\u6210\u7684\u7ed3\u679c\u5b57\u7b26\u4e32&lt;\/returns&gt;\r\nfunction Replace(const AText: QStringW; AMacroStart, AMacroEnd: QStringW;const AFlags: Integer = 0): QStringW; overload;<\/pre>\n<p>[C++]<\/p>\n<pre class=\"lang:c++ decode:true\">\/\/\/ &lt;summary&gt;\u4f7f\u7528\u5b8f\u5b9a\u4e49\u66ff\u6362\u6307\u5b9a\u7684\u6587\u672c&lt;\/summary&gt;\r\n\/\/\/ &lt;param name=\"AText\"&gt;\u8981\u88ab\u66ff\u6362\u7684\u6587\u672c&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AMacroStart\"&gt;\u5b8f\u5b9a\u4e49\u8d77\u59cb\u5b57\u7b26\uff0c\u53ef\u4ee5\u4e0e\u7ed3\u675f\u5b57\u7b26\u4e0d\u540c&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AMacroEnd\"&gt;\u5b8f\u5b9a\u4e49\u7ed3\u675f\u5b57\u7b26&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AFlags\"&gt;\u6807\u5fd7\u4f4d\uff0c\u53ef\u53d6 MRF_IN_DBL_QUOTER \u548c MRF_IN_SINGLE_QUOTER \u7684\u7ec4\u5408&lt;\/param&gt;\r\n\/\/\/ &lt;returns&gt;\u8fd4\u56de\u66ff\u6362\u5b8c\u6210\u7684\u7ed3\u679c\u5b57\u7b26\u4e32&lt;\/returns&gt;\r\nUnicodeString __fastcall Replace(const UnicodeString &amp;AText,UnicodeString AMacroStart,UnicodeString AMacroEnd,const int AFlags=0);<\/pre>\n<p>\u6b64\u51fd\u6570\u5c06\u76f4\u63a5\u7f16\u8bd1\u5e76\u5b8c\u6210\u66ff\u6362\u540e\u91ca\u653e\u7f16\u8bd1\u7ed3\u679c\u3002<\/p>\n<p>\uff082\uff09\u3001\u5b8c\u6574\u7248\u672c<\/p>\n<p>\u5b8c\u6574\u7248\u672c\u7531\u7528\u6237\u81ea\u5df1\u63a7\u5236\u7f16\u8bd1\u548c\u66ff\u6362\u8fc7\u7a0b\uff0c\u4ece\u800c\u5b9e\u73b0\u4e00\u6b21\u7f16\u8bd1\uff0c\u591a\u6b21\u8fd0\u884c\uff0c\u907f\u514d\u91cd\u590d\u7684\u7f16\u8bd1\u5f00\u9500\uff0c\u52a0\u5feb\u6279\u91cf\u66ff\u6362\u65f6\u7684\u6548\u7387\u3002<\/p>\n<p>\u7f16\u8bd1\u64cd\u4f5c\u7531\u51fd\u6570Complie\u8d1f\u8d23\u5b8c\u6210\uff0c\u6211\u4eec\u770b\u5b83\u7684\u53c2\u6570\u4f1a\u53d1\u73b0\u548c\u4e0a\u9762\u7684Replace\u7b80\u5316\u7248\u5b9e\u73b0\u51e0\u4e4e\u5b8c\u5168\u4e00\u81f4\uff0c\u552f\u4e00\u7684\u4e0d\u540c\u662f\u8fd4\u56de\u4e86\u4e00\u4e2aTQMacroComplied\u7c7b\u578b\u7684\u5bf9\u8c61\uff0c\u8fd9\u4e2a\u5bf9\u8c61\u5728\u4f60\u4e0d\u9700\u8981\u65f6\uff0c\u9700\u8981\u624b\u52a8\u91ca\u653e\uff0c\u4ee5\u907f\u514d\u5185\u5b58\u6cc4\u9732\u3002<\/p>\n<p>\u66ff\u6362\u64cd\u4f5c\u7531\u51fd\u6570Replace\u7684\u4e00\u79cd\u91cd\u8f7d\u5b9e\u73b0\uff0c\u552f\u4e00\u7684\u53c2\u6570\u662fComplie\u8fd4\u56de\u7684\u5bf9\u8c61\u5b9e\u4f8b\u3002<\/p>\n<p>\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u4e0d\u63a8\u8350\u5728Complie\u7f16\u8bd1\u540e\uff0c\u518d\u5165\u6808\u65b0\u7684\u5b8f\u5b9a\u4e49\uff0c\u56e0\u4e3a\u5b83\u4f1a\u5f15\u8d77\u5728Replace\u65f6\u6267\u884c\u4e00\u904d\u5b8f\u7c7b\u578b\u68c0\u67e5\uff0c\u4ee5\u786e\u4fdd\u751f\u6210\u6b63\u786e\u7684\u7ed3\u679c\u3002<\/p>\n<p>\u6211\u4eec\u770b\u4e00\u4e0b\u8fd9\u4e24\u4e2a\u51fd\u6570\u7684\u58f0\u660e\uff1a<\/p>\n<p>[Delphi]<\/p>\n<pre class=\"lang:delphi decode:true\">\/\/\/ &lt;summary&gt;\u4f7f\u7528\u5b8f\u5b9a\u4e49\u66ff\u6362\u6307\u5b9a\u7684\u6587\u672c&lt;\/summary&gt;\r\n\/\/\/ &lt;param name=\"AText\"&gt;\u8981\u88ab\u66ff\u6362\u7684\u6587\u672c&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AMacroStart\"&gt;\u5b8f\u5b9a\u4e49\u8d77\u59cb\u5b57\u7b26\uff0c\u53ef\u4ee5\u4e0e\u7ed3\u675f\u5b57\u7b26\u4e0d\u540c&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AMacroEnd\"&gt;\u5b8f\u5b9a\u4e49\u7ed3\u675f\u5b57\u7b26&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AFlags\"&gt;\u6807\u5fd7\u4f4d\uff0c\u53ef\u53d6 MRF_IN_DBL_QUOTER \u548c MRF_IN_SINGLE_QUOTER \u7684\u7ec4\u5408&lt;\/param&gt;\r\n\/\/\/ &lt;returns&gt;\u7f16\u8bd1\u6210\u529f\uff0c\u8fd4\u56de\u7f16\u8bd1\u4e2d\u95f4\u7ed3\u679c\u53e5\u67c4\uff0c\u5931\u8d25\uff0c\u8fd4\u56de\u7a7a\uff0c\u8fd4\u56de\u7684TQMacroComplied\u5bf9\u8c61\u9700\u8981\u4e0a\u5c42\u624b\u5de5\u91ca\u653e&lt;\/returns&gt;\r\nfunction Complie(AText: QStringW; AMacroStart, AMacroEnd: QStringW;const AFlags: Integer = 0): TQMacroComplied;\r\n\r\n\/\/\/ &lt;summary&gt;\u4f7f\u7528\u6307\u5b9a\u7684\u7f16\u8bd1\u7ed3\u679c\u6267\u884c\u4e00\u6b21\u66ff\u6362\u64cd\u4f5c&lt;\/summary&gt;\r\n\/\/\/ &lt;param name=\"AHandle\"&gt;\u4f7f\u7528Complie\u51fd\u6570\u7f16\u8bd1\u7684\u4e2d\u95f4\u7ed3\u679c&lt;\/param&gt;\r\n\/\/\/ &lt;returns&gt;\u8fd4\u56de\u66ff\u6362\u7ed3\u679c&lt;\/returns&gt;\r\nfunction Replace(AHandle: TQMacroComplied): QStringW; overload;<\/pre>\n<p>[C++]<\/p>\n<pre class=\"lang:delphi decode:true\">\/\/\/ &lt;summary&gt;\u4f7f\u7528\u5b8f\u5b9a\u4e49\u66ff\u6362\u6307\u5b9a\u7684\u6587\u672c&lt;\/summary&gt;\r\n\/\/\/ &lt;param name=\"AText\"&gt;\u8981\u88ab\u66ff\u6362\u7684\u6587\u672c&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AMacroStart\"&gt;\u5b8f\u5b9a\u4e49\u8d77\u59cb\u5b57\u7b26\uff0c\u53ef\u4ee5\u4e0e\u7ed3\u675f\u5b57\u7b26\u4e0d\u540c&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AMacroEnd\"&gt;\u5b8f\u5b9a\u4e49\u7ed3\u675f\u5b57\u7b26&lt;\/param&gt;\r\n\/\/\/ &lt;param name=\"AFlags\"&gt;\u6807\u5fd7\u4f4d\uff0c\u53ef\u53d6 MRF_IN_DBL_QUOTER \u548c MRF_IN_SINGLE_QUOTER \u7684\u7ec4\u5408&lt;\/param&gt;\r\n\/\/\/ &lt;returns&gt;\u7f16\u8bd1\u6210\u529f\uff0c\u8fd4\u56de\u7f16\u8bd1\u4e2d\u95f4\u7ed3\u679c\u53e5\u67c4\uff0c\u5931\u8d25\uff0c\u8fd4\u56de\u7a7a\uff0c\u8fd4\u56de\u7684TQMacroComplied\u5bf9\u8c61\u9700\u8981\u4e0a\u5c42\u624b\u5de5\u91ca\u653e&lt;\/returns&gt;\r\nTQMacroComplied * __fastcall Complie(UnicodeString AText,UnicodeString AMacroStart,UnicodeString AMacroEnd,const int AFlags=0);\r\n\r\n\/\/\/ &lt;summary&gt;\u4f7f\u7528\u6307\u5b9a\u7684\u7f16\u8bd1\u7ed3\u679c\u6267\u884c\u4e00\u6b21\u66ff\u6362\u64cd\u4f5c&lt;\/summary&gt;\r\n\/\/\/ &lt;param name=\"AHandle\"&gt;\u4f7f\u7528Complie\u51fd\u6570\u7f16\u8bd1\u7684\u4e2d\u95f4\u7ed3\u679c&lt;\/param&gt;\r\n\/\/\/ &lt;returns&gt;\u8fd4\u56de\u66ff\u6362\u7ed3\u679c&lt;\/returns&gt;\r\nUnicodeString __fastcall Replace(TQMacroComplied *AHandle);<\/pre>\n<p>4\u3001\u91ca\u653eComplie\u8fd4\u56de\u7684\u7ed3\u679c\uff08\u5982\u679c\u4e0d\u4e3a\u7a7a\uff09\uff0c\u4f7f\u7528Delphi\uff08Free\u6216Dispose\u6216FreeAndNil\u6216\u7531QString\u63d0\u4f9b\u7684FreeObject)\u6216C++\u7684delete\u5373\u53ef\u3002<\/p>\n<p>\u597d\u4e86\uff0c\u6211\u60f3\u57fa\u672c\u7684\u4f7f\u7528\u6b65\u9aa4\u5df2\u7ecf\u8bf4\u7684\u6bd4\u8f83\u6e05\u695a\u4e86\u3002\u66f4\u9ad8\u7ea7\u7684\u4e3b\u9898\u54b1\u4eec\u53e6\u7ae0\u8ba8\u8bba\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u521b\u5efa\u4e00\u4e2aTQMacroManager [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[69,8,9,214],"tags":[215,226],"class_list":["post-1444","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-qdac","category-qmacros","tag-215","tag-226"],"views":4372,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1444"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1444\/revisions"}],"predecessor-version":[{"id":1445,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1444\/revisions\/1445"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}