%@page import="com.ibm.icu.dev.util.ElapsedTimer"%> <%@page import="org.unicode.cldr.web.SurveyMain"%><%@page import="org.unicode.cldr.web.WebContext, java.util.List"%><%@ page language="java" contentType="text/html; charset=UTF-8" import="com.ibm.icu.util.ULocale,org.unicode.cldr.util.*,org.unicode.cldr.web.*" %><%-- Copyright (C) 2012 IBM and Others. All Rights Reserved --%> <% if(!SurveyMain.isSetup || SurveyMain.isBusted()) { %>Error: Survey Tool is not running.<% return; } String loc = request.getParameter("loc"); String q = WebContext.decodeFieldString(request.getParameter("q").trim()); if(q==null||q.length()==0) return; ElapsedTimer et = new ElapsedTimer("results in"); if(q.startsWith("\\u") || q.startsWith("=")) { String q2 = com.ibm.icu.impl.Utility.unescape(q); if(q2.startsWith("=")) q2 = q2.substring(1); %>
<%= t.toString() %> loading <%= loc2.getDisplayName() %> - <%= loc2 %> <% t.printStackTrace(); %><% } if(f==null) continue; for(String xp : f) { String str = f.getStringValue(xp); xpc++; if(str.contains(q2)) { if(!hdr) { %>
<% if(v.isEmpty()) continue; for(String s : v) { %> <%= s %><% } else { if(v==null||v.isEmpty()) continue; for(String s : v ) { if(s!=null && s.toLowerCase().equals(q)) { %><%= type %> : <%= code %> =
<% } %>
<% for(String s2 : v) { if(s2.toLowerCase().equals(q)) { %><% } else { %><% } %> <%= s %><% continue; } } } } } %>
<% } %>
<% if(v!=null && !v.isEmpty()) for(String s : v) { %> <%= s %><% } } } %>
<% } %>