From 9077ac97903ee04765403e69d3528b5c168f7b9d Mon Sep 17 00:00:00 2001 From: zsxxsz Date: Sun, 14 Dec 2014 18:29:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib_acl/samples/json/json.vcproj | 230 ----------------- lib_acl/samples/json/json.vcxproj | 177 ------------- lib_acl/samples/json/main.cpp | 395 ------------------------------ lib_acl/samples/json/test1 | 22 -- lib_acl/samples/json/test1.txt | 13 - lib_acl/samples/json/test2 | 11 - lib_acl/samples/json/test2.txt | 12 - lib_acl/samples/json/test3 | 26 -- lib_acl/samples/json/test3.txt | 5 - lib_acl/samples/json/test4 | 88 ------- lib_acl/samples/json/test5 | 27 -- lib_acl/samples/json/test6 | 1 - lib_acl/samples/json/valgrind.sh | 3 - 13 files changed, 1010 deletions(-) delete mode 100644 lib_acl/samples/json/json.vcproj delete mode 100644 lib_acl/samples/json/json.vcxproj delete mode 100644 lib_acl/samples/json/main.cpp delete mode 100644 lib_acl/samples/json/test1 delete mode 100644 lib_acl/samples/json/test1.txt delete mode 100644 lib_acl/samples/json/test2 delete mode 100644 lib_acl/samples/json/test2.txt delete mode 100644 lib_acl/samples/json/test3 delete mode 100644 lib_acl/samples/json/test3.txt delete mode 100644 lib_acl/samples/json/test4 delete mode 100644 lib_acl/samples/json/test5 delete mode 100644 lib_acl/samples/json/test6 delete mode 100644 lib_acl/samples/json/valgrind.sh diff --git a/lib_acl/samples/json/json.vcproj b/lib_acl/samples/json/json.vcproj deleted file mode 100644 index fcbc6eaf8..000000000 --- a/lib_acl/samples/json/json.vcproj +++ /dev/null @@ -1,230 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/lib_acl/samples/json/json.vcxproj b/lib_acl/samples/json/json.vcxproj deleted file mode 100644 index 2ca4245dd..000000000 --- a/lib_acl/samples/json/json.vcxproj +++ /dev/null @@ -1,177 +0,0 @@ - - - - - DebugDll - Win32 - - - Debug - Win32 - - - ReleaseDll - Win32 - - - Release - Win32 - - - - {8021ECD9-04CB-463B-B287-1FB0F5486D91} - Win32Proj - - - - Application - MultiByte - - - Application - MultiByte - - - Application - MultiByte - - - Application - MultiByte - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - Debug\ - Debug\ - true - Release\ - Release\ - false - $(Configuration)\ - $(Configuration)\ - true - $(Configuration)\ - $(Configuration)\ - false - AllRules.ruleset - - - AllRules.ruleset - - - AllRules.ruleset - - - AllRules.ruleset - - - - - - Disabled - ..\..\..\lib_acl\include;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebug - - - Level3 - ProgramDatabase - - - $(OutDir)json.exe - true - $(OutDir)json.pdb - Console - MachineX86 - - - - - ..\..\..\lib_acl\include;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - MultiThreaded - - - Level3 - ProgramDatabase - - - $(OutDir)json.exe - true - Console - true - true - MachineX86 - - - - - Disabled - ..\..\..\lib_acl\include;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;ACL_DLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - - - Level3 - ProgramDatabase - - - $(OutDir)json.exe - true - $(OutDir)json.pdb - Console - MachineX86 - - - - - ..\..\..\lib_acl\include;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;ACL_DLL;%(PreprocessorDefinitions) - MultiThreadedDLL - - - Level3 - ProgramDatabase - - - $(OutDir)json.exe - true - Console - true - true - MachineX86 - - - - - {b40213c2-507c-4c7f-a6e1-b850c9bdc27b} - false - - - - - - - - - diff --git a/lib_acl/samples/json/main.cpp b/lib_acl/samples/json/main.cpp deleted file mode 100644 index bb814c1c6..000000000 --- a/lib_acl/samples/json/main.cpp +++ /dev/null @@ -1,395 +0,0 @@ -#include "lib_acl.h" - -#define STR acl_vstring_str - -static const char* default_data = \ - "{ 'menu name': {\r\n" - " 'id:file': 'file',\r\n" - " 'value{': 'File',\r\n" - " 'popup{}': {\r\n" - " 'menuitem1}': [\r\n" - " {'value': 'New', 'onclick': 'CreateNewDoc()'},\r\n" - " {'value': 'Open', 'onclick': 'OpenDoc()'},\r\n" - " {'value': 'Close', 'onclick': 'CloseDoc()'}\r\n" - " ],\r\n" - " 'menuname[]': 'hello world',\r\n" - " 'inner': { 'value' : 'new ', 'value' : 'open' },\r\n" - " 'menuitem2': [\r\n" - " {'value': 'New', 'onclick': 'CreateNewDoc()'},\r\n" - " {'value': 'Open', 'onclick': 'OpenDoc()'},\r\n" - " {'value': 'Close', 'onclick': 'CloseDoc()'},\r\n" - " {{'value': 'Help', 'onclick': 'Help()'}}" - " ]\r\n" - " }\r\n" - " }\r\n," - " 'help': 'hello world!',\r\n" - " 'menuitem2': [\r\n" - " {'value': 'New', 'onclick': 'CreateNewDoc()'},\r\n" - " {'value': 'Open', 'onclick': 'OpenDoc()'},\r\n" - " {'value': 'Close', 'onclick': 'CloseDoc()'},\r\n" - " [{'value': 'Save', 'onclick': 'SaveDoc()'}]" - " ]\r\n" - "}\r\n"; - -static void print_json_node(const ACL_JSON* json, const ACL_JSON_NODE* node) -{ - for (int i = 1; i < node->depth; i++) - printf("\t"); - printf("tag> %s, parent %s, text: %s, child: %s, type: %s\n", - STR(node->ltag), node->parent == json->root - ? "root" : STR(node->parent->ltag), - STR(node->text), node->tag_node ? "yes" : "no", - acl_json_node_type(node)); -} - -static void test_json_foreach1(ACL_JSON* json) -{ - ACL_ITER iter; - - printf("------------ in %s ------------\r\n", __FUNCTION__); - - acl_foreach(iter, json) - { - const ACL_JSON_NODE* node = (const ACL_JSON_NODE*) iter.data; - print_json_node(json, node); - } - - ACL_FILE* fp = acl_fopen("./json.txt", "w"); - acl_assert(fp); - ACL_VSTRING* buf = acl_json_build(json, NULL); - acl_fwrite(acl_vstring_str(buf), ACL_VSTRING_LEN(buf), 1, fp); - acl_fclose(fp); - acl_vstring_free(buf); - printf("\r\n"); -} - -static void test_json_foreach2(ACL_JSON* json) -{ - ACL_ITER iter1, iter2, iter3, iter4, iter5; - ACL_JSON_NODE *node1, *node2, *node3, *node4, *node5; - - printf("------------ in %s ------------\r\n", __FUNCTION__); - - /* Ò»¼¶½áµã */ - acl_foreach(iter1, json->root) { - node1 = (ACL_JSON_NODE*) iter1.data; - print_json_node(json, node1); - - /* ¶þ¼¶½áµã */ - acl_foreach(iter2, node1) { - node2 = (ACL_JSON_NODE*) iter2.data; - print_json_node(json, node2); - - /* Èý¼¶½áµã */ - acl_foreach(iter3, node2) { - node3 = (ACL_JSON_NODE*) iter3.data; - print_json_node(json, node3); - - /* Ëļ¶½áµã */ - acl_foreach(iter4, node3) { - node4 = (ACL_JSON_NODE*) iter4.data; - print_json_node(json, node4); - - /* Î弶½áµã */ - acl_foreach(iter5, node4) { - node5 = (ACL_JSON_NODE*) iter5.data; - print_json_node(json, node5); - } - } - } - } - } - printf("\r\n"); -} - -static void test_json_find1(ACL_JSON* json) -{ - printf("------------ in %s ------------\r\n", __FUNCTION__); - - //const char* tags = "menu/*/menuitem/*/onclick"; - const char* tags = "menu/popup/menuitem/*/onclick"; - //const char* tags = "menu/popup/menuitem"; - //const char* tags = "menu/popup/menuname"; - //const char* tags = "menu/id"; - - printf(">>find: %s\r\n", tags); - - ACL_ARRAY* a = acl_json_getElementsByTags(json, tags); - if (a == NULL) { - printf("\r\n"); - return; - } - - ACL_ITER iter1, iter2, iter3; - acl_foreach(iter1, a) { - ACL_JSON_NODE* node1 = (ACL_JSON_NODE*) iter1.data; - printf("%s: %s\r\n", tags, STR(node1->text)); - - /* ±éÀú node1 ½áµãµÄÒ»¼¶×Ó½áµã */ - acl_foreach(iter2, node1) { - ACL_JSON_NODE* node2 = (ACL_JSON_NODE*) iter2.data; - - /* ±éÀú node2 ½áµãµÄÒ»¼¶×Ó½áµã */ - acl_foreach(iter3, node2) { - ACL_JSON_NODE* node3 = - (ACL_JSON_NODE*) iter3.data; - printf("\t%s: %s\r\n", STR(node3->ltag), - STR(node3->text)); - } - printf("---------------------------------------\r\n"); - } - } - acl_json_free_array(a); - printf(">>find %s end\r\n\r\n", tags); -} - -static void test_json_find2(ACL_JSON* json) -{ - const char* tag = "onclick"; - ACL_ARRAY* a = acl_json_getElementsByTagName(json, tag); - ACL_ITER iter; - - printf("------------ in %s ------------\r\n", __FUNCTION__); - - if (a) { - acl_foreach(iter, a) { - ACL_JSON_NODE* node = (ACL_JSON_NODE*) iter.data; - printf("find %s result: %s\r\n", tag, STR(node->text)); - } - acl_json_free_array(a); - } - - tag = "help"; - a = acl_json_getElementsByTagName(json, tag); - if (a) { - acl_foreach(iter, a) { - ACL_JSON_NODE* node = (ACL_JSON_NODE*) iter.data; - printf("find %s result: %s\r\n", tag, STR(node->text)); - } - acl_json_free_array(a); - } - printf(">>find %s end\r\n\r\n", tag); -} - -static void test_json_data(const char* data) -{ - ACL_JSON* json = acl_json_alloc(); - const char* ptr = data; - char buf[2]; - ACL_VSTRING *tmp; - - json->flag |= ACL_JSON_FLAG_PART_WORD; - - if (1) { - while (*ptr) - { - buf[0] = *ptr++; - buf[1] = 0; - acl_json_update(json, buf); - /* - if (json->finish) - break; - */ - } - } - else - acl_json_update(json, data); - - test_json_foreach1(json); - test_json_foreach2(json); - test_json_find1(json); - test_json_find2(json); - - tmp = acl_vstring_alloc(128); - acl_json_build(json, tmp); - printf(">>>source: |%s|\r\n", data); - printf(">>>result: |%s|\r\n", acl_vstring_str(tmp)); - acl_vstring_free(tmp); - acl_json_free(json); -} - -static void test_json_build(void) -{ - ACL_JSON* json = acl_json_alloc(); - ACL_JSON_NODE* root, *node1, *node2, *node3; - - root = acl_json_create_obj(json); - acl_json_node_append_child(json->root, root); - - node1 = acl_json_create_leaf(json, "name1", "value1"); - acl_json_node_append_child(root, node1); - - node1 = acl_json_create_leaf(json, "name2", "value2"); - acl_json_node_append_child(root, node1); - - node1 = acl_json_create_obj(json); - node2 = acl_json_create_leaf(json, "name3", "value3"); - acl_json_node_append_child(node1, node2); - node2 = acl_json_create_node(json, "name4", node1); - acl_json_node_append_child(root, node2); - - ////////////////////////////////////////////////////////////////////////// - - node1 = acl_json_create_array(json); - node2 = acl_json_create_node(json, "name5", node1); - acl_json_node_append_child(root, node2); - - node3 = acl_json_create_leaf(json, "name6", "value6"); - acl_json_node_append_child(node1, node3); - - node3 = acl_json_create_leaf(json, "name7", "value7"); - acl_json_node_append_child(node1, node3); - - node3 = acl_json_create_obj(json); - acl_json_node_append_child(node1, node3); - node2 = acl_json_create_leaf(json, "name8", "value8"); - acl_json_node_append_child(node3, node2); - node2 = acl_json_create_leaf(json, "name9", "value9"); - acl_json_node_append_child(node3, node2); - - ////////////////////////////////////////////////////////////////////////// - - ACL_VSTRING* buf = acl_json_build(json, NULL); - printf("%s\r\n", acl_vstring_str(buf)); - acl_vstring_free(buf); - - acl_json_free(json); -} - -static void test_json_default(void) -{ - test_json_data(default_data); - test_json_build(); -} - -static void test_json_file(const char* path) -{ - char* buf = acl_vstream_loadfile(path); - if (buf == NULL) - { - printf("load file %s error(%s)\r\n", path, acl_last_serror()); - return; - } - - printf("buf: |%s|\r\n", buf); - test_json_data(buf); - acl_myfree(buf); -} - -static void test_json_benchmark(bool use_cache, bool once, int max) -{ - ACL_JSON *json = acl_json_alloc(); - - if (use_cache) - acl_json_cache(json, 1000); - - ACL_METER_TIME("-------------bat begin--------------"); - - for (int i = 0; i < max; i++) - { - const char* ptr = default_data; - - if (once) - acl_json_update(json, ptr); - else - { - /* ÿ´Î½öÊäÈëÒ»¸ö×Ö½ÚÀ´·ÖÎö json Êý¾Ý */ - while (*ptr != 0) { - char ch2[2]; - - ch2[0] = *ptr; - ch2[1] = 0; - acl_json_update(json, ch2); - ptr++; - } - } - acl_json_reset(json); - } - - ACL_METER_TIME("-------------bat end--------------"); - acl_json_free(json); -} - -static void usage(const char* program) -{ - printf("usage: %s -h[help]\n" - " -f json_filepath\n" - " -b[benchmark] -c[cache for banchmark] -m benchmark_max\n" - " -s[once parse]\n" - " -M[use mempool]\r\n", program); -} - -int main(int argc, char** argv) -{ -#if 0 -// const char* pp = "Õ\\"; - const char* pp = "å\\"; - while (*pp) - { - printf("ch: %d\r\n", *pp); - pp++; - } - printf("'\\': %d\r\n", '\\'); - exit(0); -#endif - - int ch; - int benchmark_max = 100; - bool use_default = true, benchmark = false; - bool benchmark_cache = false, once = false, use_mempool = false; - - while ((ch = getopt(argc, argv, "hf:bcm:sM")) > 0) - { - switch (ch) - { - case 'h': - use_default = false; - usage(argv[0]); - return (0); - case 'f': - use_default = false; - test_json_file(optarg); - break; - case 'b': - use_default = false; - benchmark = true; - break; - case 'c': - use_default = false; - benchmark_cache = true; - break; - case 'm': - use_default = false; - benchmark_max = atoi(optarg); - break; - case 's': - once = true; - break; - case 'M': - use_mempool = true; - break; - default: - break; - } - } - - if (use_mempool) - { - acl_mem_slice_init(8, 1024, 100000, - ACL_SLICE_FLAG_GC2 | - ACL_SLICE_FLAG_RTGC_OFF | - ACL_SLICE_FLAG_LP64_ALIGN); - printf("use mempool now\n"); - } - - if (benchmark) - test_json_benchmark(benchmark_cache, once, benchmark_max); - else if (use_default) - test_json_default(); - -#ifdef WIN32 - getchar(); -#endif - - return (0); -} diff --git a/lib_acl/samples/json/test1 b/lib_acl/samples/json/test1 deleted file mode 100644 index eacfbf5e6..000000000 --- a/lib_acl/samples/json/test1 +++ /dev/null @@ -1,22 +0,0 @@ -{ - "glossary": { - "title": "example glossary", - "GlossDiv": { - "title": "S", - "GlossList": { - "GlossEntry": { - "ID": "SGML", - "SortAs": "SGML", - "GlossTerm": "Standard Generalized Markup Language", - "Acronym": "SGML", - "Abbrev": "ISO 8879:1986", - "GlossDef": { - "para": "A meta-markup language, used to create markup languages such as DocBook.", - "GlossSeeAlso": ["GML", "XML"] - }, - "GlossSee": "markup" - } - } - } - } -} diff --git a/lib_acl/samples/json/test1.txt b/lib_acl/samples/json/test1.txt deleted file mode 100644 index 9676de352..000000000 --- a/lib_acl/samples/json/test1.txt +++ /dev/null @@ -1,13 +0,0 @@ -{ menu: { - id: 'file', - value: 'File', - popup: { - menuitem: [ - { value: 'New', onclick: 'CreateNewDoc()' }, - { value: 'Open', onclick: 'OpenDoc()' }, - { value: 'Close', onclick: 'CloseDoc()' } - ], - menuitem: 'hello world' - } - } -} diff --git a/lib_acl/samples/json/test2 b/lib_acl/samples/json/test2 deleted file mode 100644 index 5600991a4..000000000 --- a/lib_acl/samples/json/test2 +++ /dev/null @@ -1,11 +0,0 @@ -{"menu": { - "id": "file", - "value": "File", - "popup": { - "menuitem": [ - {"value": "New", "onclick": "CreateNewDoc()"}, - {"value": "Open", "onclick": "OpenDoc()"}, - {"value": "Close", "onclick": "CloseDoc()"} - ] - } -}} diff --git a/lib_acl/samples/json/test2.txt b/lib_acl/samples/json/test2.txt deleted file mode 100644 index f457f5360..000000000 --- a/lib_acl/samples/json/test2.txt +++ /dev/null @@ -1,12 +0,0 @@ -{ - id: 'file', value: 'File', - popup: { - menuitem: [ - { value: 'New', onclick: 'CreateNewDoc()' }, - { value: 'Open', onclick: 'OpenDoc()' }, - { value: 'Close', onclick: 'CloseDoc()' } - ], - menuitem: 'help' - }, - help: 'hello world!' -} diff --git a/lib_acl/samples/json/test3 b/lib_acl/samples/json/test3 deleted file mode 100644 index 5662b3774..000000000 --- a/lib_acl/samples/json/test3 +++ /dev/null @@ -1,26 +0,0 @@ -{"widget": { - "debug": "on", - "window": { - "title": "Sample Konfabulator Widget", - "name": "main_window", - "width": 500, - "height": 500 - }, - "image": { - "src": "Images/Sun.png", - "name": "sun1", - "hOffset": 250, - "vOffset": 250, - "alignment": "center" - }, - "text": { - "data": "Click Here", - "size": 36, - "style": "bold", - "name": "text1", - "hOffset": 250, - "vOffset": 100, - "alignment": "center", - "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;" - } -}} \ No newline at end of file diff --git a/lib_acl/samples/json/test3.txt b/lib_acl/samples/json/test3.txt deleted file mode 100644 index 2acd21189..000000000 --- a/lib_acl/samples/json/test3.txt +++ /dev/null @@ -1,5 +0,0 @@ -{ - id: 'file'; - value: 'File', - name: 'zsxxsz' -} diff --git a/lib_acl/samples/json/test4 b/lib_acl/samples/json/test4 deleted file mode 100644 index d540b57f0..000000000 --- a/lib_acl/samples/json/test4 +++ /dev/null @@ -1,88 +0,0 @@ -{"web-app": { - "servlet": [ - { - "servlet-name": "cofaxCDS", - "servlet-class": "org.cofax.cds.CDSServlet", - "init-param": { - "configGlossary:installationAt": "Philadelphia, PA", - "configGlossary:adminEmail": "ksm@pobox.com", - "configGlossary:poweredBy": "Cofax", - "configGlossary:poweredByIcon": "/images/cofax.gif", - "configGlossary:staticPath": "/content/static", - "templateProcessorClass": "org.cofax.WysiwygTemplate", - "templateLoaderClass": "org.cofax.FilesTemplateLoader", - "templatePath": "templates", - "templateOverridePath": "", - "defaultListTemplate": "listTemplate.htm", - "defaultFileTemplate": "articleTemplate.htm", - "useJSP": false, - "jspListTemplate": "listTemplate.jsp", - "jspFileTemplate": "articleTemplate.jsp", - "cachePackageTagsTrack": 200, - "cachePackageTagsStore": 200, - "cachePackageTagsRefresh": 60, - "cacheTemplatesTrack": 100, - "cacheTemplatesStore": 50, - "cacheTemplatesRefresh": 15, - "cachePagesTrack": 200, - "cachePagesStore": 100, - "cachePagesRefresh": 10, - "cachePagesDirtyRead": 10, - "searchEngineListTemplate": "forSearchEnginesList.htm", - "searchEngineFileTemplate": "forSearchEngines.htm", - "searchEngineRobotsDb": "WEB-INF/robots.db", - "useDataStore": true, - "dataStoreClass": "org.cofax.SqlDataStore", - "redirectionClass": "org.cofax.SqlRedirection", - "dataStoreName": "cofax", - "dataStoreDriver": "com.microsoft.jdbc.sqlserver.SQLServerDriver", - "dataStoreUrl": "jdbc:microsoft:sqlserver://LOCALHOST:1433;DatabaseName=goon", - "dataStoreUser": "sa", - "dataStorePassword": "dataStoreTestQuery", - "dataStoreTestQuery": "SET NOCOUNT ON;select test='test';", - "dataStoreLogFile": "/usr/local/tomcat/logs/datastore.log", - "dataStoreInitConns": 10, - "dataStoreMaxConns": 100, - "dataStoreConnUsageLimit": 100, - "dataStoreLogLevel": "debug", - "maxUrlLength": 500}}, - { - "servlet-name": "cofaxEmail", - "servlet-class": "org.cofax.cds.EmailServlet", - "init-param": { - "mailHost": "mail1", - "mailHostOverride": "mail2"}}, - { - "servlet-name": "cofaxAdmin", - "servlet-class": "org.cofax.cds.AdminServlet"}, - - { - "servlet-name": "fileServlet", - "servlet-class": "org.cofax.cds.FileServlet"}, - { - "servlet-name": "cofaxTools", - "servlet-class": "org.cofax.cms.CofaxToolsServlet", - "init-param": { - "templatePath": "toolstemplates/", - "log": 1, - "logLocation": "/usr/local/tomcat/logs/CofaxTools.log", - "logMaxSize": "", - "dataLog": 1, - "dataLogLocation": "/usr/local/tomcat/logs/dataLog.log", - "dataLogMaxSize": "", - "removePageCache": "/content/admin/remove?cache=pages&id=", - "removeTemplateCache": "/content/admin/remove?cache=templates&id=", - "fileTransferFolder": "/usr/local/tomcat/webapps/content/fileTransferFolder", - "lookInContext": 1, - "adminGroupID": 4, - "betaServer": true}}], - "servlet-mapping": { - "cofaxCDS": "/", - "cofaxEmail": "/cofaxutil/aemail/*", - "cofaxAdmin": "/admin/*", - "fileServlet": "/static/*", - "cofaxTools": "/tools/*"}, - - "taglib": { - "taglib-uri": "cofax.tld", - "taglib-location": "/WEB-INF/tlds/cofax.tld"}}} \ No newline at end of file diff --git a/lib_acl/samples/json/test5 b/lib_acl/samples/json/test5 deleted file mode 100644 index 49980ca25..000000000 --- a/lib_acl/samples/json/test5 +++ /dev/null @@ -1,27 +0,0 @@ -{"menu": { - "header": "SVG Viewer", - "items": [ - {"id": "Open"}, - {"id": "OpenNew", "label": "Open New"}, - null, - {"id": "ZoomIn", "label": "Zoom In"}, - {"id": "ZoomOut", "label": "Zoom Out"}, - {"id": "OriginalView", "label": "Original View"}, - null, - {"id": "Quality"}, - {"id": "Pause"}, - {"id": "Mute"}, - null, - {"id": "Find", "label": "Find..."}, - {"id": "FindAgain", "label": "Find Again"}, - {"id": "Copy"}, - {"id": "CopyAgain", "label": "Copy Again"}, - {"id": "CopySVG", "label": "Copy SVG"}, - {"id": "ViewSVG", "label": "View SVG"}, - {"id": "ViewSource", "label": "View Source"}, - {"id": "SaveAs", "label": "Save As"}, - null, - {"id": "Help"}, - {"id": "About", "label": "About Adobe CVG Viewer..."} - ] -}} diff --git a/lib_acl/samples/json/test6 b/lib_acl/samples/json/test6 deleted file mode 100644 index 72c67b5e3..000000000 --- a/lib_acl/samples/json/test6 +++ /dev/null @@ -1 +0,0 @@ -{ "value0-ɽ±¾Õ\" : "ɽ±¾Õ\", "value1-\[ɽ±¾Õ\\]" : "Ðåå\", "ɽ±¾Õ\-value2" : "\[´óÏÉ\]", "\[ɽ±¾Õ\\]-value3" : "\'hello\'", "value4" : "ɽ±¾Õ\", "value5" : "\[´óÏÉ\]"} diff --git a/lib_acl/samples/json/valgrind.sh b/lib_acl/samples/json/valgrind.sh deleted file mode 100644 index 45fa79ffc..000000000 --- a/lib_acl/samples/json/valgrind.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -valgrind --tool=memcheck --leak-check=yes -v ./json -b -m 10