emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/pyim 889db4b5ab 49/58: pyim-pinyin-get-charpy -> pyim-p


From: ELPA Syncer
Subject: [elpa] externals/pyim 889db4b5ab 49/58: pyim-pinyin-get-charpy -> pyim-pinyin--get-charpy
Date: Fri, 24 Jun 2022 06:57:56 -0400 (EDT)

branch: externals/pyim
commit 889db4b5ab519fb8b5039b9c1f108d29848a2fb8
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    pyim-pinyin-get-charpy -> pyim-pinyin--get-charpy
---
 pyim-pinyin.el      | 6 +++---
 tests/pyim-tests.el | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/pyim-pinyin.el b/pyim-pinyin.el
index ecac3d6989..5c39b09080 100644
--- a/pyim-pinyin.el
+++ b/pyim-pinyin.el
@@ -100,7 +100,7 @@
            (pyim-pinyin-find-fuzzy
             (list shenmu yunmu shenmu yunmu)))))
 
-(defun pyim-pinyin-get-charpy (pinyin)
+(defun pyim-pinyin--get-charpy (pinyin)
   "将拼音字符串 PINYIN 分解成声母,韵母和剩余部分."
   (let* ((x (pyim-pinyin--get-shenmu pinyin))
          (shenmu (car x))
@@ -158,12 +158,12 @@
 (defun pyim-pinyin-split (pinyin)
   "将一个代表拼音的字符串 PINYIN, 分解为声母韵母对组成的列表.
 
-这个过程通过循环的调用 `pyim-pinyin-get-charpy' 来实现,整个过程
+这个过程通过循环的调用 `pyim-pinyin--get-charpy' 来实现,整个过程
 类似用菜刀切黄瓜片,将一个拼音字符串逐渐切开。"
   (let ((py pinyin)
         charpy spinyin)
     (while (when (string< "" pinyin)
-             (setq charpy (pyim-pinyin-get-charpy pinyin))
+             (setq charpy (pyim-pinyin--get-charpy pinyin))
              (if (and (equal (nth 0 (car charpy)) "")
                       (equal (nth 1 (car charpy)) ""))
                  (progn
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index 63d849ac03..aac46c4b55 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -316,12 +316,12 @@
   (should-not (pyim-pinyin--valid-charpy-p "n" "k"))
   (should-not (pyim-pinyin--valid-charpy-p "a" "k"))
 
-  ;; pyim-pinyin-get-charpy
-  (should (equal (pyim-pinyin-get-charpy "nihao")
+  ;; pyim-pinyin--get-charpy
+  (should (equal (pyim-pinyin--get-charpy "nihao")
                  '(("n" "i" "n" "i") . "hao")))
-  (should (equal (pyim-pinyin-get-charpy "ao")
+  (should (equal (pyim-pinyin--get-charpy "ao")
                  '(("" "ao" "" "ao") . "")))
-  (should (equal (pyim-pinyin-get-charpy "nh")
+  (should (equal (pyim-pinyin--get-charpy "nh")
                  '(("n" "" "n" "") . "h")))
 
   ;; pyim-pinyin-split



reply via email to

[Prev in Thread] Current Thread [Next in Thread]