由买买提看人间百态

topics

全部话题 - 话题: strcasecmp
(共0页)
p*u
发帖数: 2454
1
来自主题: CS版 - any way to speed up strcasecmp?
【 以下文字转载自 Programming 讨论区 】
发信人: pxu (Lingua Franca), 信区: Programming
标 题: any way to speed up strcasecmp?
发信站: BBS 未名空间站 (Tue Nov 8 18:32:38 2005), 转信
strcasecmp provided in string.h, compare two strings case-insensitive. but it
is slow. Any better algorithms? thx.
X****r
发帖数: 3557
2
来自主题: Programming版 - 求改进小函数
为什么不用strcasecmp?
X****r
发帖数: 3557
3
来自主题: Programming版 - 求改进小函数
wcscasecmp() if available
You can check the source code of strcasecmp to get the idea. However, it
really depends on the representation of the string, e.g. checking the
length first is not efficient for C strings, but it is for C++'s
std::string.

it
l*******e
发帖数: 3584
4
没有太看明白,我也是用的DOCKSTAR,如何去改那个chan_gtalk.c
是不是我要去装这个补丁
ASTERISK-17333
[patch] Use of Google XMPP Extensions for Google Talk/Voice
还是下面这个
Outgoing calls fail due to protocol change:
redirect node name is changed from "redirect" to "sta:redirect".
Simple change to search string on in chan_gtalk.c fixes it. Tested. See
patch.
gtalk_08192011.patch
Index: channels/chan_gtalk.c
===================================================================
--- channels/chan_gtalk.c (revision 332695)
+++ channels/... 阅读全帖
a9
发帖数: 21638
5
Index: channels/chan_gtalk.c
===================================================================
--- channels/chan_gtalk.c (revision 346898)
+++ channels/chan_gtalk.c (working copy)
@@ -481,7 +481,8 @@
break;
}
if (!strcasecmp(name, "error") &&
- (redirect = iks_find_cdata(traversenodes, "r
edirect")) &&
+ ( (redirect = iks_find_cdata(traverseno... 阅读全帖
(共0页)