553N/A * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 553N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 553N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 553N/A * or visit www.oracle.com if you need additional information or have any 0N/A * This class holds the information about locales. 0N/A * @author Robert Field 0N/A * The locale name will be set by Main, if option is provided on the 0N/A * The locale to be used. If user doesen't provide this, 0N/A * then set it to default locale value. 0N/A * The collator for this application. This is to take care of Locale 0N/A * Specific or Natural Language Text sorting. 0N/A * Sentence instance from the BreakIterator. 0N/A * True is we should use <code>BreakIterator</code> 0N/A * to compute first sentence. 0N/A * The HTML sentence terminators. 0N/A "<p>",
"</p>",
"<h1>",
"<h2>",
0N/A "<h3>",
"<h4>",
"<h5>",
"<h6>",
0N/A "</h1>",
"</h2>",
"</h3>",
"</h4>",
"</h5>",
0N/A "</h6>",
"<hr>",
"<pre>",
"</pre>" 0N/A * Get the locale if specified on the command line 0N/A * else return null and if locale option is not used 0N/A * then return default locale. 0N/A * Search the locale for specified language, specified country and 0N/A * specified variant. 0N/A * Return the first sentence of a string, where a sentence ends 0N/A * with a period followed be white space. 0N/A for (
int i =
0 ; i <
len ; i++) {
0N/A * Find out if there is any HTML tag in the given string. If found 0N/A * return true else return false.