On Thu, Dec 4, 2008 at 9:13 PM, Matthew Toseland
<toad at amphibian.dyndns.org> wrote:
> On Thursday 04 December 2008 10:42, j16sdiz at freenetproject.org wrote:
>> Author: j16sdiz
>> Date: 2008-12-04 10:42:09 +0000 (Thu, 04 Dec 2008)
>> New Revision: 24035
>>
>> Modified:
>>    trunk/plugins/XMLLibrarian/XMLLibrarian.java
>> Log:
>> bug 1714, changes for XMLLibrarian
>>
>>
>> Modified: trunk/plugins/XMLLibrarian/XMLLibrarian.java
>> ===================================================================
>> --- trunk/plugins/XMLLibrarian/XMLLibrarian.java      2008-12-04 09:08:34 UTC
> (rev 24034)
>> +++ trunk/plugins/XMLLibrarian/XMLLibrarian.java      2008-12-04 10:42:09 UTC
> (rev 24035)
>> @@ -186,7 +186,6 @@
>>
>>               StringBuilder out = new StringBuilder();
>>               String search = request.getParam("search");
>> -             search = search.toLowerCase();
>>               String stylesheet = request.getParam("stylesheet", null);
>>               String choice = request.getParam("choice");
>>
>> @@ -556,7 +555,7 @@
>>        * @param stylesheet
>>        */
>>       private void searchStr(StringBuilder out,String search,String
> indexuri,String stylesheet) throws Exception{
>> -
>> +             search = search.toLowerCase();
>>               if (search.equals("")) {
>>                       out.append("Give a valid string to search\n");
>>                       return;
>> @@ -567,7 +566,7 @@
>>                       // Get search result
>>                       out.append("<p>Index Site: 
>> "+HTMLEncoder.encode(indexuri)+"</p>");
>>                       DEFAULT_INDEX_SITE = indexuri;
>> -                     String searchWords[] = search.split(" ");
>> +                     String[] searchWords = search.split("[^\\p{L}\\{N}]");
>
> Again, \{N} isn't documented by java...

It is in unicode standard.

>
>>                       // Return results in order.
>>                       LinkedHashSet hs = new LinkedHashSet();
>>                       Vector keyuris;
>
> _______________________________________________
> Devl mailing list
> Devl at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
>

Reply via email to