Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnVCL 组件包
» CnStrDiff的比较函数有Bug
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: CnStrDiff的比较函数有Bug
inthefly
新警察
UID 40640
Digest Posts 0
Credits 18
Posts 6
点点分 18
Reading Access 10
Registered 2008-7-11
Status Offline
#1
Post at 2008-7-11 14:20
Profile
|
Blog
|
P.M.
CnStrDiff的比较函数有Bug
版主,我使用CnStrDiff的比较函数时,发现对中文支持不是很好。
比如我用SimilarText比较“我”和“人”这两个字,结果是50%,但是实际上应该是100%的。
而且我用"abcd"和"ghjkl"比较,结果也是20%.
能解决这个问题吗?如何解决?
[
本帖最后由 inthefly 于 2008-7-11 14:24 编辑
]
zjy
管理员
UID 2
Digest Posts
6
Credits 2385
Posts 1543
点点分 2385
Reading Access 102
Registered 2002-12-16
Location China
Status Offline
#2
Post at 2008-7-13 12:01
Profile
|
Site
|
Blog
|
P.M.
多谢反馈!
这个单元最初的设计确实不太合适,我简单修改了一下,勉强可以工作了。如果有时间我们会开发一个更完善的版本。
修改后的代码可以通过CVS取得,用CVS取代码的方法见网站首页的链接。
Zhou JingYu
CnPack Administrator
http://www.cnpack.org/
inthefly
新警察
UID 40640
Digest Posts 0
Credits 18
Posts 6
点点分 18
Reading Access 10
Registered 2008-7-11
Status Offline
#3
Post at 2008-7-14 11:34
Profile
|
Blog
|
P.M.
非常谢谢,我后来也试了一下,字数较少的时候是很有问题的。
字数较多就稍好一些。
谢谢版主
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-22 06:34
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.007807 second(s), 8 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats