Commit Graph

77 Commits

Author SHA1 Message Date
Alice39s 9b9e49737f
chore(license): add LICENSE.md copies to source-only bindings
Add dual-license LICENSE.md to C, C++, Lua, Lua_C, PHP, and Nginx
bindings so source distributions include the license text.
2026-06-29 23:54:36 +09:00
fa1seut0pia b0466348da 避免 shell 通配符展开 2026-03-22 07:06:28 +08:00
lionsoul2014 fb0efface4 optimize the ptr checking and return empty string for missing data 2026-03-03 13:40:54 +08:00
lionsoul2014 a694cfa8d2 add global emoji for supported lang list 2026-02-24 15:56:58 +08:00
lionsoul2014 2861abcb83 add english readme for c binding 2026-02-24 13:40:09 +08:00
lionsoul2014 ad0cfd6bd9 pack the ftell & fseek for later large file supports 2026-01-27 18:56:04 +08:00
lionsoul2014 969a5f0e03 tests with output in Chinese and English 2026-01-25 14:44:31 +08:00
lionsoul2014 e139731d9e update the demo tests to the latest result 2026-01-25 14:23:09 +08:00
lionsoul2014 bd30b77d54 fix the typo 2025-11-13 09:39:23 +08:00
lionsoul2014 dc64c27abd c99 std supports 2025-11-02 23:03:07 +08:00
lionsoul2014 1da81ffc02 API define optimize for C99 std supports 2025-11-02 22:54:44 +08:00
lion d56230518a search api desc 2025-10-21 12:57:25 +08:00
lion 2a77acf1c0 return empty string for empty match 2025-10-21 12:57:14 +08:00
lion e39ac2d6d1 optimize the type define 2025-10-11 15:53:09 +08:00
lion 54a160e230 ignore the test_util binary 2025-10-10 10:31:22 +08:00
lion 2d71241a3b for msvc 2025-09-30 09:36:52 +08:00
lion a137813509 enable all standard warnings & fix all the warnings 2025-09-25 22:24:01 +08:00
lion 0179edc3a8 auto manager the region buffer & remove the unused vars 2025-09-25 22:11:52 +08:00
lion 931fb9e67b use the local stack region_buffer instead of heap allocation 2025-09-23 18:15:46 +08:00
lion 75893f0331 include time.h for windows struture tm 2025-09-22 23:47:38 +08:00
lion 7e599e05a0 print the error tip if region_buffer init failed 2025-09-19 16:16:19 +08:00
lion 48c2b395bc c binding is ready for IPv6 2025-09-19 13:08:47 +08:00
lion dff3084b93 C binding is ready for IPv6 2025-09-18 23:09:19 +08:00
lion 8fbdf82797 IPv6 search and docs is ready 2025-09-18 15:53:48 +08:00
lion 73c8b20d3a apply the bytes ip to the whole search process 2025-09-17 23:10:42 +08:00
lion 69b9f062e4 directly compare the ip from the buffer 2025-09-17 14:45:03 +08:00
lion 1575e581cd try to apply the bytes_ip_t for the search 2025-09-17 14:43:28 +08:00
lion 4cff9eb6ee ip parse / to_string / compare util function is ready 2025-09-17 13:07:35 +08:00
lion 0fd0bc59d0 bytes ip utils prototype 2025-09-16 22:09:49 +08:00
lion c64837db67 ip util function update for IPv6 2025-09-16 15:29:55 +08:00
lion eb80b89c0e ipv6 supporting for clang 2025-09-16 14:46:34 +08:00
Lion 27b5efde55 regen the xdb and remove the -g for c binding default compile flag 2024-02-28 10:35:24 +08:00
Lion 3066d243cd Compatible with windows system 2023-10-13 11:07:45 +08:00
lion a5b42e32fe convert length type to compitatible with the old std 2023-04-03 09:50:23 +08:00
Wu Jian Ping a406f0e636 1. c binding 支持MAC构建 2. c binding 支持构建静态库(nginx模块需要用到) 2023-03-31 18:14:24 +08:00
lion 3641d130d0 use rb mode reported at https://github.com/lionsoul2014/ip2region/issues/255 2022-08-13 11:51:30 +08:00
lion 67eb391a5a remove the unused ptr reported at https://github.com/lionsoul2014/ip2region/issues/254 2022-08-13 11:49:18 +08:00
Lion 69a085f8cf auto close the handle for all buffer load functions 2022-07-20 16:04:00 +08:00
Lion e09c9b57b9 update the docs for vectorIndex/content buffer type and resource close 2022-07-02 18:07:17 +08:00
Lion b949574af5 void * for all the close functions 2022-07-01 15:42:39 +08:00
Lion 91f9efa107 wrap the header/vector/content buffer 2022-07-01 11:57:45 +08:00
Lion b8710c17d8 safely duplicate close 2022-06-30 18:34:14 +08:00
Lion 7325306a56 make all the db_path and vIndex/cBuffer args const 2022-06-30 11:55:41 +08:00
Lion c5b45e0502 add api usage demo docs 2022-06-29 17:35:19 +08:00
Lion 7f9a9fd3a7 add search/bench test ReadMe docs 2022-06-29 15:28:14 +08:00
Lion 257c391912 add Makefile 2022-06-29 15:16:16 +08:00
Lion bcf12a41db xdb clang binding is ready with search/bench test passed 2022-06-29 15:03:32 +08:00
Lion 015a15f2e0 safe the type convertion 2022-06-29 09:47:09 +08:00
lion 417636d93c newline the error info print 2022-06-28 18:37:16 +08:00
lion cb03009ac4 fix the bug of content based read offset 2022-06-28 18:37:02 +08:00