PinInPy 1.0.5__tar.gz → 1.0.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. {pininpy-1.0.5 → pininpy-1.0.6}/PKG-INFO +1 -1
  2. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/CMakeLists.txt +1 -1
  3. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/src/Keyboard.cpp +18 -8
  4. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/src/PinInCAPI.cpp +1 -1
  5. {pininpy-1.0.5 → pininpy-1.0.6}/pyproject.toml +1 -1
  6. {pininpy-1.0.5 → pininpy-1.0.6}/.editorconfig +0 -0
  7. {pininpy-1.0.5 → pininpy-1.0.6}/.github/workflows/python-publish.yml +0 -0
  8. {pininpy-1.0.5 → pininpy-1.0.6}/.gitignore +0 -0
  9. {pininpy-1.0.5 → pininpy-1.0.6}/.gitmodules +0 -0
  10. {pininpy-1.0.5 → pininpy-1.0.6}/CMakeLists.txt +0 -0
  11. {pininpy-1.0.5 → pininpy-1.0.6}/LICENSE +0 -0
  12. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/.editorconfig +0 -0
  13. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/.gitattributes +0 -0
  14. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/.gitignore +0 -0
  15. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/CMakeSettings.json +0 -0
  16. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/FFIExample/PinInLua.lua +0 -0
  17. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/LICENSE +0 -0
  18. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/README.md +0 -0
  19. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/cmake/PinIn4CppConfig.cmake.in +0 -0
  20. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/example/PinyinTest.cpp +0 -0
  21. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/include/PinIn4Cpp/Keyboard.h +0 -0
  22. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/include/PinIn4Cpp/ParallelSearch.h +0 -0
  23. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/include/PinIn4Cpp/PinIn.h +0 -0
  24. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/include/PinIn4Cpp/PinInCAPI.h +0 -0
  25. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/include/PinIn4Cpp/PinyinFormat.h +0 -0
  26. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/include/PinIn4Cpp/TreeSearcher.h +0 -0
  27. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/include/PinIn4Cpp/detail/Accelerator.h +0 -0
  28. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/include/PinIn4Cpp/detail/AdaptiveContainers.h +0 -0
  29. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/include/PinIn4Cpp/detail/BinUtils.h +0 -0
  30. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/include/PinIn4Cpp/detail/IndexSet.h +0 -0
  31. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/include/PinIn4Cpp/detail/ObjectPool.h +0 -0
  32. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/include/PinIn4Cpp/detail/StringPool.h +0 -0
  33. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/include/PinIn4Cpp/detail/StringUtils.h +0 -0
  34. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/licenses/PinIn.txt +0 -0
  35. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/licenses/pinyin-data.txt +0 -0
  36. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/src/PinIn.cpp +0 -0
  37. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/src/PinyinFormat.cpp +0 -0
  38. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/src/TreeSearcher.cpp +0 -0
  39. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/src/utils/Accelerator.cpp +0 -0
  40. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/src/utils/BinUtils.cpp +0 -0
  41. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/src/utils/IndexSet.cpp +0 -0
  42. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/src/utils/StringPool.cpp +0 -0
  43. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/src/utils/StringUtils.cpp +0 -0
  44. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/test_data/large.txt +0 -0
  45. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/test_data/pinyin.txt +0 -0
  46. {pininpy-1.0.5 → pininpy-1.0.6}/PinIn4Cpp/test_data/small.txt +0 -0
  47. {pininpy-1.0.5 → pininpy-1.0.6}/README.md +0 -0
  48. {pininpy-1.0.5 → pininpy-1.0.6}/build_cffi.py +0 -0
  49. {pininpy-1.0.5 → pininpy-1.0.6}/package/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: PinInPy
3
- Version: 1.0.5
3
+ Version: 1.0.6
4
4
  Summary: Python library for Pinyin searching
5
5
  Keywords: PinIn,pinyin match,pinyin,cffi
6
6
  Author-Email: SajoYukimi <kagiyamahino@gmail.com>
@@ -1,7 +1,7 @@
1
1
  cmake_minimum_required(VERSION 3.12)
2
2
  include(GenerateExportHeader)
3
3
 
4
- project(PinIn4Cpp VERSION 1.5.9)
4
+ project(PinIn4Cpp VERSION 1.5.10)
5
5
 
6
6
  set(CMAKE_CXX_STANDARD 20)
7
7
  set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -169,14 +169,24 @@ namespace PinInCpp {
169
169
  }
170
170
  }
171
171
  }
172
+ else {//防止多重赋值的问题,下面也是
173
+ MapLocalFuzzy = std::nullopt;
174
+ }
175
+
172
176
  if (src.MapKeys.has_value()) {
173
177
  MapKeys = std::map<std::string_view, std::string_view>();
174
178
  ViewDeepCopy(src.pool, src.MapKeys.value(), MapKeys.value());
175
179
  }
180
+ else {
181
+ MapKeys = std::nullopt;
182
+ }
176
183
  if (src.MapLocal.has_value()) {
177
184
  MapLocal = std::map<std::string_view, std::string_view>();
178
185
  ViewDeepCopy(src.pool, src.MapLocal.value(), MapLocal.value());
179
186
  }
187
+ else {
188
+ MapLocal = std::nullopt;
189
+ }
180
190
  }
181
191
 
182
192
  std::string_view Keyboard::keys(std::string_view s)const noexcept {
@@ -378,12 +388,12 @@ namespace PinInCpp {
378
388
 
379
389
  const Keyboard Keyboard::QUANPIN = Keyboard(std::nullopt, std::nullopt, Keyboard::Standard, false, true);
380
390
  const Keyboard Keyboard::DAQIAN = Keyboard(PHONETIC_LOCAL, DAQIAN_KEYS, Keyboard::Standard, false, false);
381
- const Keyboard Keyboard::XIAOHE = Keyboard(std::nullopt, XIAOHE_KEYS, Keyboard::Zero, true, false);
382
- const Keyboard Keyboard::ZIRANMA = Keyboard(std::nullopt, ZIRANMA_KEYS, Keyboard::Zero, true, false);
383
- const Keyboard Keyboard::SOUGOU = Keyboard(std::nullopt, SOUGOU_KEYS, Keyboard::ZeroOInitial, true, false);
384
- const Keyboard Keyboard::ZHINENG_ABC = Keyboard(std::nullopt, ZHINENG_ABC_KEYS, Keyboard::ZeroOInitial, true, false);
385
- const Keyboard Keyboard::GUOBIAO = Keyboard(std::nullopt, GUOBIAO_KEYS, Keyboard::ZeroAInitial, true, false);
386
- const Keyboard Keyboard::MICROSOFT = Keyboard(std::nullopt, MICROSOFT_KEYS, Keyboard::ZeroOInitial, true, false);
387
- const Keyboard Keyboard::PINYINPP = Keyboard(std::nullopt, PINYINPP_KEYS, Keyboard::Zero, true, false);
388
- const Keyboard Keyboard::ZIGUANG = Keyboard(std::nullopt, ZIGUANG_KEYS, Keyboard::ZeroOInitial, true, false);
391
+ const Keyboard Keyboard::XIAOHE = Keyboard(std::nullopt, XIAOHE_KEYS, Keyboard::Zero, false, false);
392
+ const Keyboard Keyboard::ZIRANMA = Keyboard(std::nullopt, ZIRANMA_KEYS, Keyboard::Zero, false, false);
393
+ const Keyboard Keyboard::SOUGOU = Keyboard(std::nullopt, SOUGOU_KEYS, Keyboard::ZeroOInitial, false, false);
394
+ const Keyboard Keyboard::ZHINENG_ABC = Keyboard(std::nullopt, ZHINENG_ABC_KEYS, Keyboard::ZeroOInitial, false, false);
395
+ const Keyboard Keyboard::GUOBIAO = Keyboard(std::nullopt, GUOBIAO_KEYS, Keyboard::ZeroAInitial, false, false);
396
+ const Keyboard Keyboard::MICROSOFT = Keyboard(std::nullopt, MICROSOFT_KEYS, Keyboard::ZeroOInitial, false, false);
397
+ const Keyboard Keyboard::PINYINPP = Keyboard(std::nullopt, PINYINPP_KEYS, Keyboard::Zero, false, false);
398
+ const Keyboard Keyboard::ZIGUANG = Keyboard(std::nullopt, ZIGUANG_KEYS, Keyboard::ZeroOInitial, false, false);
389
399
  }
@@ -276,7 +276,7 @@ PinInCpp_SearchResult PinInCpp_TreeSearcher_ExecuteSearch(PinInCpp_TreeSearcher
276
276
  *resultBuf = item;
277
277
  resultBuf++;
278
278
  }
279
-
279
+
280
280
  return result;
281
281
  }
282
282
 
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
4
4
 
5
5
  [project]
6
6
  name = "PinInPy"
7
- version = "1.0.5"
7
+ version = "1.0.6"
8
8
  dependencies = ["cffi"]
9
9
  requires-python = ">=3.10"
10
10
  authors = [
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes