Most viewed C recipes tagged "string"http://code.activestate.com/recipes/langs/c/tags/string/views/2011-10-15T00:33:41-07:00ActiveState Code RecipesImplementation of Knuth–Morris–Pratt algorithm (C) 2011-10-15T00:33:41-07:00Shao-chuan Wanghttp://code.activestate.com/recipes/users/4168519/http://code.activestate.com/recipes/577908-implementation-of-knuthmorrispratt-algorithm/ <p style="color: grey"> C recipe 577908 by <a href="/recipes/users/4168519/">Shao-chuan Wang</a> (<a href="/recipes/tags/kmp/">kmp</a>, <a href="/recipes/tags/matching/">matching</a>, <a href="/recipes/tags/string/">string</a>). Revision 2. </p> <p>Knuth–Morris–Pratt (KMP) is a linear time string matching algorithm.</p> <p><a href="http://en.wikipedia.org/wiki/Knuth%25E2%2580%2593Morris%25E2%2580%2593Pratt_algorithm" rel="nofollow">http://en.wikipedia.org/wiki/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm</a></p> <p>This recipe gives a C-version implementation.</p> escape url characters (C) 2009-09-28T20:41:05-07:00J Yhttp://code.activestate.com/recipes/users/4170398/http://code.activestate.com/recipes/576916-escape-url-characters/ <p style="color: grey"> C recipe 576916 by <a href="/recipes/users/4170398/">J Y</a> (<a href="/recipes/tags/string/">string</a>). </p> <p>对于url中的一些特殊字符会被转义以利传输, * 并且， 归档服务器上, php写入cookie中的值可能存在特殊字符， 需要转换</p>