PageRenderTime 291ms CodeModel.GetById 229ms app.highlight 50ms RepoModel.GetById 1ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/TextUtilities.html

#
HTML | 1024 lines | 918 code | 92 blank | 14 comment | 0 complexity | ca82c58f85ae779443e50f756ab527c8 MD5 | raw file
   1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
   2<!--NewPage-->
   3<HTML>
   4<HEAD>
   5<!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:13:46 GMT-08:00 2008 -->
   6<TITLE>
   7TextUtilities (jEdit API)
   8</TITLE>
   9
  10<META NAME="keywords" CONTENT="org.gjt.sp.jedit.TextUtilities class">
  11
  12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
  13
  14
  15<NOSCRIPT>
  16</NOSCRIPT>
  17
  18</HEAD>
  19
  20<BODY BGCOLOR="white" >
  21
  22
  23<!-- ========= START OF TOP NAVBAR ======= -->
  24<A NAME="navbar_top"><!-- --></A>
  25<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  26<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  27<TR>
  28<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  29<A NAME="navbar_top_firstrow"><!-- --></A>
  30<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  31  <TR ALIGN="center" VALIGN="top">
  32  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  33  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  34  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  35  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/TextUtilities.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  36  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  37  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  38  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  39  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  40  </TR>
  41</TABLE>
  42</TD>
  43<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  44</EM>
  45</TD>
  46</TR>
  47
  48<TR>
  49<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  50&nbsp;<A HREF="../../../../org/gjt/sp/jedit/ServiceManager.ServiceFoldHandlerProvider.html" title="class in org.gjt.sp.jedit"><B>PREV CLASS</B></A>&nbsp;
  51&nbsp;<A HREF="../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit"><B>NEXT CLASS</B></A></FONT></TD>
  52<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  53  <A HREF="../../../../index.html?org/gjt/sp/jedit/TextUtilities.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  54&nbsp;<A HREF="TextUtilities.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  55&nbsp;
  56<NOSCRIPT>
  57  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  58</NOSCRIPT>
  59
  60
  61</FONT></TD>
  62</TR>
  63<TR>
  64<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  65  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  66<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  67DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  68</TR>
  69</TABLE>
  70<A NAME="skip-navbar_top"></A>
  71<!-- ========= END OF TOP NAVBAR ========= -->
  72
  73<HR>
  74<!-- ======== START OF CLASS DATA ======== -->
  75<H2>
  76<FONT SIZE="-1">
  77org.gjt.sp.jedit</FONT>
  78<BR>
  79Class TextUtilities</H2>
  80<PRE>
  81java.lang.Object
  82  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.TextUtilities</B>
  83</PRE>
  84<HR>
  85<DL>
  86<DT><PRE>public class <B>TextUtilities</B><DT>extends java.lang.Object</DL>
  87</PRE>
  88
  89<P>
  90Contains several text manipulation methods.
  91
  92 <ul>
  93 <li>Bracket matching
  94 <li>Word start and end offset calculation
  95 <li>String comparison
  96 <li>Converting tabs to spaces and vice versa
  97 <li>Wrapping text
  98 <li>String case conversion
  99 </ul>
 100<P>
 101
 102<P>
 103<HR>
 104
 105<P>
 106<!-- =========== FIELD SUMMARY =========== -->
 107
 108<A NAME="field_summary"><!-- --></A>
 109<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 110<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 111<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
 112<B>Field Summary</B></FONT></TH>
 113</TR>
 114<TR BGCOLOR="white" CLASS="TableRowColor">
 115<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 116<CODE>static&nbsp;int</CODE></FONT></TD>
 117<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#BRACKET_MATCH_LIMIT">BRACKET_MATCH_LIMIT</A></B></CODE>
 118
 119<BR>
 120&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 121</TR>
 122<TR BGCOLOR="white" CLASS="TableRowColor">
 123<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 124<CODE>static&nbsp;int</CODE></FONT></TD>
 125<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#LOWER_CASE">LOWER_CASE</A></B></CODE>
 126
 127<BR>
 128&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 129</TR>
 130<TR BGCOLOR="white" CLASS="TableRowColor">
 131<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 132<CODE>static&nbsp;int</CODE></FONT></TD>
 133<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#MIXED">MIXED</A></B></CODE>
 134
 135<BR>
 136&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 137</TR>
 138<TR BGCOLOR="white" CLASS="TableRowColor">
 139<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 140<CODE>static&nbsp;int</CODE></FONT></TD>
 141<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#TITLE_CASE">TITLE_CASE</A></B></CODE>
 142
 143<BR>
 144&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 145</TR>
 146<TR BGCOLOR="white" CLASS="TableRowColor">
 147<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 148<CODE>static&nbsp;int</CODE></FONT></TD>
 149<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#UPPER_CASE">UPPER_CASE</A></B></CODE>
 150
 151<BR>
 152&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 153</TR>
 154</TABLE>
 155&nbsp;
 156<!-- ======== CONSTRUCTOR SUMMARY ======== -->
 157
 158<A NAME="constructor_summary"><!-- --></A>
 159<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 160<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 161<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
 162<B>Constructor Summary</B></FONT></TH>
 163</TR>
 164<TR BGCOLOR="white" CLASS="TableRowColor">
 165<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#TextUtilities()">TextUtilities</A></B>()</CODE>
 166
 167<BR>
 168&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 169</TR>
 170</TABLE>
 171&nbsp;
 172<!-- ========== METHOD SUMMARY =========== -->
 173
 174<A NAME="method_summary"><!-- --></A>
 175<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 176<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 177<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
 178<B>Method Summary</B></FONT></TH>
 179</TR>
 180<TR BGCOLOR="white" CLASS="TableRowColor">
 181<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 182<CODE>static&nbsp;int</CODE></FONT></TD>
 183<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#findMatchingBracket(org.gjt.sp.jedit.buffer.JEditBuffer, int, int)">findMatchingBracket</A></B>(<A HREF="../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html" title="class in org.gjt.sp.jedit.buffer">JEditBuffer</A>&nbsp;buffer,
 184                    int&nbsp;line,
 185                    int&nbsp;offset)</CODE>
 186
 187<BR>
 188&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the offset of the bracket matching the one at the
 189 specified offset of the buffer, or -1 if the bracket is
 190 unmatched (or if the character is not a bracket).</TD>
 191</TR>
 192<TR BGCOLOR="white" CLASS="TableRowColor">
 193<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 194<CODE>static&nbsp;int</CODE></FONT></TD>
 195<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#findWordEnd(java.lang.CharSequence, int, java.lang.String)">findWordEnd</A></B>(java.lang.CharSequence&nbsp;line,
 196            int&nbsp;pos,
 197            java.lang.String&nbsp;noWordSep)</CODE>
 198
 199<BR>
 200&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Locates the end of the word at the specified position.</TD>
 201</TR>
 202<TR BGCOLOR="white" CLASS="TableRowColor">
 203<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 204<CODE>static&nbsp;int</CODE></FONT></TD>
 205<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#findWordEnd(java.lang.CharSequence, int, java.lang.String, boolean, boolean, boolean)">findWordEnd</A></B>(java.lang.CharSequence&nbsp;line,
 206            int&nbsp;pos,
 207            java.lang.String&nbsp;noWordSep,
 208            boolean&nbsp;joinNonWordChars,
 209            boolean&nbsp;camelCasedWords,
 210            boolean&nbsp;eatWhitespace)</CODE>
 211
 212<BR>
 213&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Locates the end of the word at the specified position.</TD>
 214</TR>
 215<TR BGCOLOR="white" CLASS="TableRowColor">
 216<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 217<CODE>static&nbsp;int</CODE></FONT></TD>
 218<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#findWordEnd(java.lang.String, int, java.lang.String)">findWordEnd</A></B>(java.lang.String&nbsp;line,
 219            int&nbsp;pos,
 220            java.lang.String&nbsp;noWordSep)</CODE>
 221
 222<BR>
 223&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Locates the end of the word at the specified position.</TD>
 224</TR>
 225<TR BGCOLOR="white" CLASS="TableRowColor">
 226<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 227<CODE>static&nbsp;int</CODE></FONT></TD>
 228<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#findWordEnd(java.lang.String, int, java.lang.String, boolean)">findWordEnd</A></B>(java.lang.String&nbsp;line,
 229            int&nbsp;pos,
 230            java.lang.String&nbsp;noWordSep,
 231            boolean&nbsp;joinNonWordChars)</CODE>
 232
 233<BR>
 234&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Locates the end of the word at the specified position.</TD>
 235</TR>
 236<TR BGCOLOR="white" CLASS="TableRowColor">
 237<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 238<CODE>static&nbsp;int</CODE></FONT></TD>
 239<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#findWordEnd(java.lang.String, int, java.lang.String, boolean, boolean)">findWordEnd</A></B>(java.lang.String&nbsp;line,
 240            int&nbsp;pos,
 241            java.lang.String&nbsp;noWordSep,
 242            boolean&nbsp;joinNonWordChars,
 243            boolean&nbsp;eatWhitespace)</CODE>
 244
 245<BR>
 246&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Locates the end of the word at the specified position.</TD>
 247</TR>
 248<TR BGCOLOR="white" CLASS="TableRowColor">
 249<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 250<CODE>static&nbsp;int</CODE></FONT></TD>
 251<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#findWordEnd(java.lang.String, int, java.lang.String, boolean, boolean, boolean)">findWordEnd</A></B>(java.lang.String&nbsp;line,
 252            int&nbsp;pos,
 253            java.lang.String&nbsp;noWordSep,
 254            boolean&nbsp;joinNonWordChars,
 255            boolean&nbsp;camelCasedWords,
 256            boolean&nbsp;eatWhitespace)</CODE>
 257
 258<BR>
 259&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Locates the end of the word at the specified position.</TD>
 260</TR>
 261<TR BGCOLOR="white" CLASS="TableRowColor">
 262<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 263<CODE>static&nbsp;int</CODE></FONT></TD>
 264<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#findWordStart(java.lang.CharSequence, int, java.lang.String)">findWordStart</A></B>(java.lang.CharSequence&nbsp;line,
 265              int&nbsp;pos,
 266              java.lang.String&nbsp;noWordSep)</CODE>
 267
 268<BR>
 269&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Locates the start of the word at the specified position.</TD>
 270</TR>
 271<TR BGCOLOR="white" CLASS="TableRowColor">
 272<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 273<CODE>static&nbsp;int</CODE></FONT></TD>
 274<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#findWordStart(java.lang.CharSequence, int, java.lang.String, boolean, boolean, boolean)">findWordStart</A></B>(java.lang.CharSequence&nbsp;line,
 275              int&nbsp;pos,
 276              java.lang.String&nbsp;noWordSep,
 277              boolean&nbsp;joinNonWordChars,
 278              boolean&nbsp;camelCasedWords,
 279              boolean&nbsp;eatWhitespace)</CODE>
 280
 281<BR>
 282&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Locates the start of the word at the specified position.</TD>
 283</TR>
 284<TR BGCOLOR="white" CLASS="TableRowColor">
 285<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 286<CODE>static&nbsp;int</CODE></FONT></TD>
 287<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#findWordStart(java.lang.String, int, java.lang.String)">findWordStart</A></B>(java.lang.String&nbsp;line,
 288              int&nbsp;pos,
 289              java.lang.String&nbsp;noWordSep)</CODE>
 290
 291<BR>
 292&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Locates the start of the word at the specified position.</TD>
 293</TR>
 294<TR BGCOLOR="white" CLASS="TableRowColor">
 295<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 296<CODE>static&nbsp;int</CODE></FONT></TD>
 297<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#findWordStart(java.lang.String, int, java.lang.String, boolean)">findWordStart</A></B>(java.lang.String&nbsp;line,
 298              int&nbsp;pos,
 299              java.lang.String&nbsp;noWordSep,
 300              boolean&nbsp;joinNonWordChars)</CODE>
 301
 302<BR>
 303&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Locates the start of the word at the specified position.</TD>
 304</TR>
 305<TR BGCOLOR="white" CLASS="TableRowColor">
 306<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 307<CODE>static&nbsp;int</CODE></FONT></TD>
 308<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#findWordStart(java.lang.String, int, java.lang.String, boolean, boolean)">findWordStart</A></B>(java.lang.String&nbsp;line,
 309              int&nbsp;pos,
 310              java.lang.String&nbsp;noWordSep,
 311              boolean&nbsp;joinNonWordChars,
 312              boolean&nbsp;eatWhitespace)</CODE>
 313
 314<BR>
 315&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Locates the start of the word at the specified position.</TD>
 316</TR>
 317<TR BGCOLOR="white" CLASS="TableRowColor">
 318<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 319<CODE>static&nbsp;int</CODE></FONT></TD>
 320<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#findWordStart(java.lang.String, int, java.lang.String, boolean, boolean, boolean)">findWordStart</A></B>(java.lang.String&nbsp;line,
 321              int&nbsp;pos,
 322              java.lang.String&nbsp;noWordSep,
 323              boolean&nbsp;joinNonWordChars,
 324              boolean&nbsp;camelCasedWords,
 325              boolean&nbsp;eatWhitespace)</CODE>
 326
 327<BR>
 328&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Locates the start of the word at the specified position.</TD>
 329</TR>
 330<TR BGCOLOR="white" CLASS="TableRowColor">
 331<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 332<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 333<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#format(java.lang.String, int, int)">format</A></B>(java.lang.String&nbsp;text,
 334       int&nbsp;maxLineLength,
 335       int&nbsp;tabSize)</CODE>
 336
 337<BR>
 338&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Formats the specified text by merging and breaking lines to the
 339 specified width.</TD>
 340</TR>
 341<TR BGCOLOR="white" CLASS="TableRowColor">
 342<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 343<CODE>static&nbsp;char</CODE></FONT></TD>
 344<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#getComplementaryBracket(char, boolean[])">getComplementaryBracket</A></B>(char&nbsp;ch,
 345                        boolean[]&nbsp;direction)</CODE>
 346
 347<BR>
 348&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given an opening bracket, return the corresponding closing bracket
 349 and store true in <code>direction[0]</code>.</TD>
 350</TR>
 351<TR BGCOLOR="white" CLASS="TableRowColor">
 352<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 353<CODE>static&nbsp;int</CODE></FONT></TD>
 354<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#getStringCase(java.lang.String)">getStringCase</A></B>(java.lang.String&nbsp;str)</CODE>
 355
 356<BR>
 357&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns if the specified string is all upper case, all lower case,
 358 or title case (first letter upper case, rest lower case).</TD>
 359</TR>
 360<TR BGCOLOR="white" CLASS="TableRowColor">
 361<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 362<CODE>static&nbsp;<A HREF="../../../../org/gjt/sp/jedit/syntax/Token.html" title="class in org.gjt.sp.jedit.syntax">Token</A></CODE></FONT></TD>
 363<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#getTokenAtOffset(org.gjt.sp.jedit.syntax.Token, int)">getTokenAtOffset</A></B>(<A HREF="../../../../org/gjt/sp/jedit/syntax/Token.html" title="class in org.gjt.sp.jedit.syntax">Token</A>&nbsp;tokens,
 364                 int&nbsp;offset)</CODE>
 365
 366<BR>
 367&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the token that contains the specified offset.</TD>
 368</TR>
 369<TR BGCOLOR="white" CLASS="TableRowColor">
 370<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 371<CODE>static&nbsp;int</CODE></FONT></TD>
 372<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#ignoringWhitespaceIndex(java.lang.String, int)">ignoringWhitespaceIndex</A></B>(java.lang.String&nbsp;str,
 373                        int&nbsp;index)</CODE>
 374
 375<BR>
 376&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inverse of <code>indexIgnoringWhitespace()</code>.</TD>
 377</TR>
 378<TR BGCOLOR="white" CLASS="TableRowColor">
 379<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 380<CODE>static&nbsp;int</CODE></FONT></TD>
 381<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#indexIgnoringWhitespace(java.lang.String, int)">indexIgnoringWhitespace</A></B>(java.lang.String&nbsp;str,
 382                        int&nbsp;index)</CODE>
 383
 384<BR>
 385&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inverse of <code>ignoringWhitespaceIndex()</code>.</TD>
 386</TR>
 387<TR BGCOLOR="white" CLASS="TableRowColor">
 388<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 389<CODE>static&nbsp;void</CODE></FONT></TD>
 390<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#indexIgnoringWhitespace(java.lang.String, int, int, java.lang.StringBuffer)">indexIgnoringWhitespace</A></B>(java.lang.String&nbsp;text,
 391                        int&nbsp;maxLineLength,
 392                        int&nbsp;tabSize,
 393                        java.lang.StringBuffer&nbsp;buf)</CODE>
 394
 395<BR>
 396&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 397</TR>
 398<TR BGCOLOR="white" CLASS="TableRowColor">
 399<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 400<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 401<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#join(java.util.Collection, java.lang.String)">join</A></B>(java.util.Collection&nbsp;c,
 402     java.lang.String&nbsp;delim)</CODE>
 403
 404<BR>
 405&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Similar to perl's join() method on lists,
 406    but works with all collections.</TD>
 407</TR>
 408<TR BGCOLOR="white" CLASS="TableRowColor">
 409<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 410<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 411<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#spacesToTabs(java.lang.String, int)">spacesToTabs</A></B>(java.lang.String&nbsp;in,
 412             int&nbsp;tabSize)</CODE>
 413
 414<BR>
 415&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts consecutive spaces to tabs in the specified string.</TD>
 416</TR>
 417<TR BGCOLOR="white" CLASS="TableRowColor">
 418<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 419<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 420<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#tabsToSpaces(java.lang.String, int)">tabsToSpaces</A></B>(java.lang.String&nbsp;in,
 421             int&nbsp;tabSize)</CODE>
 422
 423<BR>
 424&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts tabs to consecutive spaces in the specified string.</TD>
 425</TR>
 426<TR BGCOLOR="white" CLASS="TableRowColor">
 427<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 428<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
 429<TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/TextUtilities.html#toTitleCase(java.lang.String)">toTitleCase</A></B>(java.lang.String&nbsp;str)</CODE>
 430
 431<BR>
 432&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the specified string to title case, by capitalizing the
 433 first letter.</TD>
 434</TR>
 435</TABLE>
 436&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
 437<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 438<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 439<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
 440</TR>
 441<TR BGCOLOR="white" CLASS="TableRowColor">
 442<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
 443</TR>
 444</TABLE>
 445&nbsp;
 446<P>
 447
 448<!-- ============ FIELD DETAIL =========== -->
 449
 450<A NAME="field_detail"><!-- --></A>
 451<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 452<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 453<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
 454<B>Field Detail</B></FONT></TH>
 455</TR>
 456</TABLE>
 457
 458<A NAME="BRACKET_MATCH_LIMIT"><!-- --></A><H3>
 459BRACKET_MATCH_LIMIT</H3>
 460<PRE>
 461public static final int <B>BRACKET_MATCH_LIMIT</B></PRE>
 462<DL>
 463<DL>
 464<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.gjt.sp.jedit.TextUtilities.BRACKET_MATCH_LIMIT">Constant Field Values</A></DL>
 465</DL>
 466<HR>
 467
 468<A NAME="MIXED"><!-- --></A><H3>
 469MIXED</H3>
 470<PRE>
 471public static final int <B>MIXED</B></PRE>
 472<DL>
 473<DL>
 474<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.gjt.sp.jedit.TextUtilities.MIXED">Constant Field Values</A></DL>
 475</DL>
 476<HR>
 477
 478<A NAME="LOWER_CASE"><!-- --></A><H3>
 479LOWER_CASE</H3>
 480<PRE>
 481public static final int <B>LOWER_CASE</B></PRE>
 482<DL>
 483<DL>
 484<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.gjt.sp.jedit.TextUtilities.LOWER_CASE">Constant Field Values</A></DL>
 485</DL>
 486<HR>
 487
 488<A NAME="UPPER_CASE"><!-- --></A><H3>
 489UPPER_CASE</H3>
 490<PRE>
 491public static final int <B>UPPER_CASE</B></PRE>
 492<DL>
 493<DL>
 494<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.gjt.sp.jedit.TextUtilities.UPPER_CASE">Constant Field Values</A></DL>
 495</DL>
 496<HR>
 497
 498<A NAME="TITLE_CASE"><!-- --></A><H3>
 499TITLE_CASE</H3>
 500<PRE>
 501public static final int <B>TITLE_CASE</B></PRE>
 502<DL>
 503<DL>
 504<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.gjt.sp.jedit.TextUtilities.TITLE_CASE">Constant Field Values</A></DL>
 505</DL>
 506
 507<!-- ========= CONSTRUCTOR DETAIL ======== -->
 508
 509<A NAME="constructor_detail"><!-- --></A>
 510<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 511<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 512<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
 513<B>Constructor Detail</B></FONT></TH>
 514</TR>
 515</TABLE>
 516
 517<A NAME="TextUtilities()"><!-- --></A><H3>
 518TextUtilities</H3>
 519<PRE>
 520public <B>TextUtilities</B>()</PRE>
 521<DL>
 522</DL>
 523
 524<!-- ============ METHOD DETAIL ========== -->
 525
 526<A NAME="method_detail"><!-- --></A>
 527<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 528<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 529<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
 530<B>Method Detail</B></FONT></TH>
 531</TR>
 532</TABLE>
 533
 534<A NAME="getTokenAtOffset(org.gjt.sp.jedit.syntax.Token, int)"><!-- --></A><H3>
 535getTokenAtOffset</H3>
 536<PRE>
 537public static <A HREF="../../../../org/gjt/sp/jedit/syntax/Token.html" title="class in org.gjt.sp.jedit.syntax">Token</A> <B>getTokenAtOffset</B>(<A HREF="../../../../org/gjt/sp/jedit/syntax/Token.html" title="class in org.gjt.sp.jedit.syntax">Token</A>&nbsp;tokens,
 538                                     int&nbsp;offset)</PRE>
 539<DL>
 540<DD>Returns the token that contains the specified offset.
 541<P>
 542<DD><DL>
 543<DT><B>Parameters:</B><DD><CODE>tokens</CODE> - The token list<DD><CODE>offset</CODE> - The offset<DT><B>Since:</B></DT>
 544  <DD>jEdit 4.0pre3</DD>
 545</DL>
 546</DD>
 547</DL>
 548<HR>
 549
 550<A NAME="getComplementaryBracket(char, boolean[])"><!-- --></A><H3>
 551getComplementaryBracket</H3>
 552<PRE>
 553public static char <B>getComplementaryBracket</B>(char&nbsp;ch,
 554                                           boolean[]&nbsp;direction)</PRE>
 555<DL>
 556<DD>Given an opening bracket, return the corresponding closing bracket
 557 and store true in <code>direction[0]</code>. Given a closing bracket,
 558 return the corresponding opening bracket and store false in
 559 <code>direction[0]</code>. Otherwise, return <code>\0</code>.
 560<P>
 561<DD><DL>
 562<DT><B>Since:</B></DT>
 563  <DD>jEdit 4.3pre2</DD>
 564</DL>
 565</DD>
 566</DL>
 567<HR>
 568
 569<A NAME="findMatchingBracket(org.gjt.sp.jedit.buffer.JEditBuffer, int, int)"><!-- --></A><H3>
 570findMatchingBracket</H3>
 571<PRE>
 572public static int <B>findMatchingBracket</B>(<A HREF="../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html" title="class in org.gjt.sp.jedit.buffer">JEditBuffer</A>&nbsp;buffer,
 573                                      int&nbsp;line,
 574                                      int&nbsp;offset)</PRE>
 575<DL>
 576<DD>Returns the offset of the bracket matching the one at the
 577 specified offset of the buffer, or -1 if the bracket is
 578 unmatched (or if the character is not a bracket).
 579<P>
 580<DD><DL>
 581<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - The buffer<DD><CODE>line</CODE> - The line<DD><CODE>offset</CODE> - The offset within that line<DT><B>Since:</B></DT>
 582  <DD>jEdit 2.6pre1</DD>
 583</DL>
 584</DD>
 585</DL>
 586<HR>
 587
 588<A NAME="findWordStart(java.lang.String, int, java.lang.String)"><!-- --></A><H3>
 589findWordStart</H3>
 590<PRE>
 591public static int <B>findWordStart</B>(java.lang.String&nbsp;line,
 592                                int&nbsp;pos,
 593                                java.lang.String&nbsp;noWordSep)</PRE>
 594<DL>
 595<DD>Locates the start of the word at the specified position.
 596<P>
 597<DD><DL>
 598<DT><B>Parameters:</B><DD><CODE>line</CODE> - The text<DD><CODE>pos</CODE> - The position<DD><CODE>noWordSep</CODE> - Characters that are non-alphanumeric, but
 599 should be treated as word characters anyway</DL>
 600</DD>
 601</DL>
 602<HR>
 603
 604<A NAME="findWordStart(java.lang.CharSequence, int, java.lang.String)"><!-- --></A><H3>
 605findWordStart</H3>
 606<PRE>
 607public static int <B>findWordStart</B>(java.lang.CharSequence&nbsp;line,
 608                                int&nbsp;pos,
 609                                java.lang.String&nbsp;noWordSep)</PRE>
 610<DL>
 611<DD>Locates the start of the word at the specified position.
 612<P>
 613<DD><DL>
 614<DT><B>Parameters:</B><DD><CODE>line</CODE> - The text<DD><CODE>pos</CODE> - The position<DD><CODE>noWordSep</CODE> - Characters that are non-alphanumeric, but
 615 should be treated as word characters anyway<DT><B>Since:</B></DT>
 616  <DD>jEdit 4.3pre15</DD>
 617</DL>
 618</DD>
 619</DL>
 620<HR>
 621
 622<A NAME="join(java.util.Collection, java.lang.String)"><!-- --></A><H3>
 623join</H3>
 624<PRE>
 625public static java.lang.String <B>join</B>(java.util.Collection&nbsp;c,
 626                                    java.lang.String&nbsp;delim)</PRE>
 627<DL>
 628<DD>Similar to perl's join() method on lists,
 629    but works with all collections.
 630<P>
 631<DD><DL>
 632<DT><B>Parameters:</B><DD><CODE>c</CODE> - An iterable collection of Objects<DD><CODE>delim</CODE> - a string to put between each object
 633<DT><B>Returns:</B><DD>a joined toString() representation of the collection<DT><B>Since:</B></DT>
 634  <DD>jedit 4.3pre3</DD>
 635</DL>
 636</DD>
 637</DL>
 638<HR>
 639
 640<A NAME="findWordStart(java.lang.String, int, java.lang.String, boolean)"><!-- --></A><H3>
 641findWordStart</H3>
 642<PRE>
 643public static int <B>findWordStart</B>(java.lang.String&nbsp;line,
 644                                int&nbsp;pos,
 645                                java.lang.String&nbsp;noWordSep,
 646                                boolean&nbsp;joinNonWordChars)</PRE>
 647<DL>
 648<DD>Locates the start of the word at the specified position.
 649<P>
 650<DD><DL>
 651<DT><B>Parameters:</B><DD><CODE>line</CODE> - The text<DD><CODE>pos</CODE> - The position<DD><CODE>noWordSep</CODE> - Characters that are non-alphanumeric, but
 652 should be treated as word characters anyway<DD><CODE>joinNonWordChars</CODE> - Treat consecutive non-alphanumeric
 653 characters as one word<DT><B>Since:</B></DT>
 654  <DD>jEdit 4.2pre5</DD>
 655</DL>
 656</DD>
 657</DL>
 658<HR>
 659
 660<A NAME="findWordStart(java.lang.String, int, java.lang.String, boolean, boolean)"><!-- --></A><H3>
 661findWordStart</H3>
 662<PRE>
 663public static int <B>findWordStart</B>(java.lang.String&nbsp;line,
 664                                int&nbsp;pos,
 665                                java.lang.String&nbsp;noWordSep,
 666                                boolean&nbsp;joinNonWordChars,
 667                                boolean&nbsp;eatWhitespace)</PRE>
 668<DL>
 669<DD>Locates the start of the word at the specified position.
 670<P>
 671<DD><DL>
 672<DT><B>Parameters:</B><DD><CODE>line</CODE> - The text<DD><CODE>pos</CODE> - The position<DD><CODE>noWordSep</CODE> - Characters that are non-alphanumeric, but
 673 should be treated as word characters anyway<DD><CODE>joinNonWordChars</CODE> - Treat consecutive non-alphanumeric
 674 characters as one word<DD><CODE>eatWhitespace</CODE> - Include whitespace at start of word<DT><B>Since:</B></DT>
 675  <DD>jEdit 4.1pre2</DD>
 676</DL>
 677</DD>
 678</DL>
 679<HR>
 680
 681<A NAME="findWordStart(java.lang.String, int, java.lang.String, boolean, boolean, boolean)"><!-- --></A><H3>
 682findWordStart</H3>
 683<PRE>
 684public static int <B>findWordStart</B>(java.lang.String&nbsp;line,
 685                                int&nbsp;pos,
 686                                java.lang.String&nbsp;noWordSep,
 687                                boolean&nbsp;joinNonWordChars,
 688                                boolean&nbsp;camelCasedWords,
 689                                boolean&nbsp;eatWhitespace)</PRE>
 690<DL>
 691<DD>Locates the start of the word at the specified position.
 692<P>
 693<DD><DL>
 694<DT><B>Parameters:</B><DD><CODE>line</CODE> - The text<DD><CODE>pos</CODE> - The position<DD><CODE>noWordSep</CODE> - Characters that are non-alphanumeric, but
 695 should be treated as word characters anyway<DD><CODE>joinNonWordChars</CODE> - Treat consecutive non-alphanumeric
 696 characters as one word<DD><CODE>camelCasedWords</CODE> - Treat "camelCased" parts as words<DD><CODE>eatWhitespace</CODE> - Include whitespace at start of word<DT><B>Since:</B></DT>
 697  <DD>jEdit 4.3pre10</DD>
 698</DL>
 699</DD>
 700</DL>
 701<HR>
 702
 703<A NAME="findWordStart(java.lang.CharSequence, int, java.lang.String, boolean, boolean, boolean)"><!-- --></A><H3>
 704findWordStart</H3>
 705<PRE>
 706public static int <B>findWordStart</B>(java.lang.CharSequence&nbsp;line,
 707                                int&nbsp;pos,
 708                                java.lang.String&nbsp;noWordSep,
 709                                boolean&nbsp;joinNonWordChars,
 710                                boolean&nbsp;camelCasedWords,
 711                                boolean&nbsp;eatWhitespace)</PRE>
 712<DL>
 713<DD>Locates the start of the word at the specified position.
 714<P>
 715<DD><DL>
 716<DT><B>Parameters:</B><DD><CODE>line</CODE> - The text<DD><CODE>pos</CODE> - The position<DD><CODE>noWordSep</CODE> - Characters that are non-alphanumeric, but
 717 should be treated as word characters anyway<DD><CODE>joinNonWordChars</CODE> - Treat consecutive non-alphanumeric
 718 characters as one word<DD><CODE>camelCasedWords</CODE> - Treat "camelCased" parts as words<DD><CODE>eatWhitespace</CODE> - Include whitespace at start of word<DT><B>Since:</B></DT>
 719  <DD>jEdit 4.3pre15</DD>
 720</DL>
 721</DD>
 722</DL>
 723<HR>
 724
 725<A NAME="findWordEnd(java.lang.String, int, java.lang.String)"><!-- --></A><H3>
 726findWordEnd</H3>
 727<PRE>
 728public static int <B>findWordEnd</B>(java.lang.String&nbsp;line,
 729                              int&nbsp;pos,
 730                              java.lang.String&nbsp;noWordSep)</PRE>
 731<DL>
 732<DD>Locates the end of the word at the specified position.
 733<P>
 734<DD><DL>
 735<DT><B>Parameters:</B><DD><CODE>line</CODE> - The text<DD><CODE>pos</CODE> - The position<DD><CODE>noWordSep</CODE> - Characters that are non-alphanumeric, but
 736 should be treated as word characters anyway</DL>
 737</DD>
 738</DL>
 739<HR>
 740
 741<A NAME="findWordEnd(java.lang.CharSequence, int, java.lang.String)"><!-- --></A><H3>
 742findWordEnd</H3>
 743<PRE>
 744public static int <B>findWordEnd</B>(java.lang.CharSequence&nbsp;line,
 745                              int&nbsp;pos,
 746                              java.lang.String&nbsp;noWordSep)</PRE>
 747<DL>
 748<DD>Locates the end of the word at the specified position.
 749<P>
 750<DD><DL>
 751<DT><B>Parameters:</B><DD><CODE>line</CODE> - The text<DD><CODE>pos</CODE> - The position<DD><CODE>noWordSep</CODE> - Characters that are non-alphanumeric, but
 752 should be treated as word characters anyway<DT><B>Since:</B></DT>
 753  <DD>jEdit 4.3pre15</DD>
 754</DL>
 755</DD>
 756</DL>
 757<HR>
 758
 759<A NAME="findWordEnd(java.lang.String, int, java.lang.String, boolean)"><!-- --></A><H3>
 760findWordEnd</H3>
 761<PRE>
 762public static int <B>findWordEnd</B>(java.lang.String&nbsp;line,
 763                              int&nbsp;pos,
 764                              java.lang.String&nbsp;noWordSep,
 765                              boolean&nbsp;joinNonWordChars)</PRE>
 766<DL>
 767<DD>Locates the end of the word at the specified position.
 768<P>
 769<DD><DL>
 770<DT><B>Parameters:</B><DD><CODE>line</CODE> - The text<DD><CODE>pos</CODE> - The position<DD><CODE>noWordSep</CODE> - Characters that are non-alphanumeric, but
 771 should be treated as word characters anyway<DD><CODE>joinNonWordChars</CODE> - Treat consecutive non-alphanumeric
 772 characters as one word<DT><B>Since:</B></DT>
 773  <DD>jEdit 4.1pre2</DD>
 774</DL>
 775</DD>
 776</DL>
 777<HR>
 778
 779<A NAME="findWordEnd(java.lang.String, int, java.lang.String, boolean, boolean)"><!-- --></A><H3>
 780findWordEnd</H3>
 781<PRE>
 782public static int <B>findWordEnd</B>(java.lang.String&nbsp;line,
 783                              int&nbsp;pos,
 784                              java.lang.String&nbsp;noWordSep,
 785                              boolean&nbsp;joinNonWordChars,
 786                              boolean&nbsp;eatWhitespace)</PRE>
 787<DL>
 788<DD>Locates the end of the word at the specified position.
 789<P>
 790<DD><DL>
 791<DT><B>Parameters:</B><DD><CODE>line</CODE> - The text<DD><CODE>pos</CODE> - The position<DD><CODE>noWordSep</CODE> - Characters that are non-alphanumeric, but
 792 should be treated as word characters anyway<DD><CODE>joinNonWordChars</CODE> - Treat consecutive non-alphanumeric
 793 characters as one word<DD><CODE>eatWhitespace</CODE> - Include whitespace at end of word<DT><B>Since:</B></DT>
 794  <DD>jEdit 4.2pre5</DD>
 795</DL>
 796</DD>
 797</DL>
 798<HR>
 799
 800<A NAME="findWordEnd(java.lang.String, int, java.lang.String, boolean, boolean, boolean)"><!-- --></A><H3>
 801findWordEnd</H3>
 802<PRE>
 803public static int <B>findWordEnd</B>(java.lang.String&nbsp;line,
 804                              int&nbsp;pos,
 805                              java.lang.String&nbsp;noWordSep,
 806                              boolean&nbsp;joinNonWordChars,
 807                              boolean&nbsp;camelCasedWords,
 808                              boolean&nbsp;eatWhitespace)</PRE>
 809<DL>
 810<DD>Locates the end of the word at the specified position.
 811<P>
 812<DD><DL>
 813<DT><B>Parameters:</B><DD><CODE>line</CODE> - The text<DD><CODE>pos</CODE> - The position<DD><CODE>noWordSep</CODE> - Characters that are non-alphanumeric, but
 814 should be treated as word characters anyway<DD><CODE>joinNonWordChars</CODE> - Treat consecutive non-alphanumeric
 815 characters as one word<DD><CODE>camelCasedWords</CODE> - Treat "camelCased" parts as words<DD><CODE>eatWhitespace</CODE> - Include whitespace at end of word<DT><B>Since:</B></DT>
 816  <DD>jEdit 4.3pre10</DD>
 817</DL>
 818</DD>
 819</DL>
 820<HR>
 821
 822<A NAME="findWordEnd(java.lang.CharSequence, int, java.lang.String, boolean, boolean, boolean)"><!-- --></A><H3>
 823findWordEnd</H3>
 824<PRE>
 825public static int <B>findWordEnd</B>(java.lang.CharSequence&nbsp;line,
 826                              int&nbsp;pos,
 827                              java.lang.String&nbsp;noWordSep,
 828                              boolean&nbsp;joinNonWordChars,
 829                              boolean&nbsp;camelCasedWords,
 830                              boolean&nbsp;eatWhitespace)</PRE>
 831<DL>
 832<DD>Locates the end of the word at the specified position.
 833<P>
 834<DD><DL>
 835<DT><B>Parameters:</B><DD><CODE>line</CODE> - The text<DD><CODE>pos</CODE> - The position<DD><CODE>noWordSep</CODE> - Characters that are non-alphanumeric, but
 836 should be treated as word characters anyway<DD><CODE>joinNonWordChars</CODE> - Treat consecutive non-alphanumeric
 837 characters as one word<DD><CODE>camelCasedWords</CODE> - Treat "camelCased" parts as words<DD><CODE>eatWhitespace</CODE> - Include whitespace at end of word<DT><B>Since:</B></DT>
 838  <DD>jEdit 4.3pre15</DD>
 839</DL>
 840</DD>
 841</DL>
 842<HR>
 843
 844<A NAME="spacesToTabs(java.lang.String, int)"><!-- --></A><H3>
 845spacesToTabs</H3>
 846<PRE>
 847public static java.lang.String <B>spacesToTabs</B>(java.lang.String&nbsp;in,
 848                                            int&nbsp;tabSize)</PRE>
 849<DL>
 850<DD>Converts consecutive spaces to tabs in the specified string.
 851<P>
 852<DD><DL>
 853<DT><B>Parameters:</B><DD><CODE>in</CODE> - The string<DD><CODE>tabSize</CODE> - The tab size</DL>
 854</DD>
 855</DL>
 856<HR>
 857
 858<A NAME="tabsToSpaces(java.lang.String, int)"><!-- --></A><H3>
 859tabsToSpaces</H3>
 860<PRE>
 861public static java.lang.String <B>tabsToSpaces</B>(java.lang.String&nbsp;in,
 862                                            int&nbsp;tabSize)</PRE>
 863<DL>
 864<DD>Converts tabs to consecutive spaces in the specified string.
 865<P>
 866<DD><DL>
 867<DT><B>Parameters:</B><DD><CODE>in</CODE> - The string<DD><CODE>tabSize</CODE> - The tab size</DL>
 868</DD>
 869</DL>
 870<HR>
 871
 872<A NAME="format(java.lang.String, int, int)"><!-- --></A><H3>
 873format</H3>
 874<PRE>
 875public static java.lang.String <B>format</B>(java.lang.String&nbsp;text,
 876                                      int&nbsp;maxLineLength,
 877                                      int&nbsp;tabSize)</PRE>
 878<DL>
 879<DD>Formats the specified text by merging and breaking lines to the
 880 specified width.
 881<P>
 882<DD><DL>
 883<DT><B>Parameters:</B><DD><CODE>text</CODE> - The text<DD><CODE>maxLineLength</CODE> - The maximum line length<DD><CODE>tabSize</CODE> - The tab size</DL>
 884</DD>
 885</DL>
 886<HR>
 887
 888<A NAME="indexIgnoringWhitespace(java.lang.String, int)"><!-- --></A><H3>
 889indexIgnoringWhitespace</H3>
 890<PRE>
 891public static int <B>indexIgnoringWhitespace</B>(java.lang.String&nbsp;str,
 892                                          int&nbsp;index)</PRE>
 893<DL>
 894<DD>Inverse of <code>ignoringWhitespaceIndex()</code>.
 895<P>
 896<DD><DL>
 897<DT><B>Parameters:</B><DD><CODE>str</CODE> - a string (not an empty string)<DD><CODE>index</CODE> - The index
 898<DT><B>Returns:</B><DD>The number of non-whitespace characters that precede the index.<DT><B>Since:</B></DT>
 899  <DD>jEdit 4.3pre2</DD>
 900</DL>
 901</DD>
 902</DL>
 903<HR>
 904
 905<A NAME="ignoringWhitespaceIndex(java.lang.String, int)"><!-- --></A><H3>
 906ignoringWhitespaceIndex</H3>
 907<PRE>
 908public static int <B>ignoringWhitespaceIndex</B>(java.lang.String&nbsp;str,
 909                                          int&nbsp;index)</PRE>
 910<DL>
 911<DD>Inverse of <code>indexIgnoringWhitespace()</code>.
 912<P>
 913<DD><DL>
 914<DT><B>Parameters:</B><DD><CODE>str</CODE> - a string (not an empty string)<DD><CODE>index</CODE> - The index
 915<DT><B>Returns:</B><DD>The index into the string where the number of non-whitespace
 916 characters that precede the index is count.<DT><B>Since:</B></DT>
 917  <DD>jEdit 4.3pre2</DD>
 918</DL>
 919</DD>
 920</DL>
 921<HR>
 922
 923<A NAME="getStringCase(java.lang.String)"><!-- --></A><H3>
 924getStringCase</H3>
 925<PRE>
 926public static int <B>getStringCase</B>(java.lang.String&nbsp;str)</PRE>
 927<DL>
 928<DD>Returns if the specified string is all upper case, all lower case,
 929 or title case (first letter upper case, rest lower case).
 930<P>
 931<DD><DL>
 932<DT><B>Parameters:</B><DD><CODE>str</CODE> - The string<DT><B>Since:</B></DT>
 933  <DD>jEdit 4.0pre1</DD>
 934</DL>
 935</DD>
 936</DL>
 937<HR>
 938
 939<A NAME="toTitleCase(java.lang.String)"><!-- --></A><H3>
 940toTitleCase</H3>
 941<PRE>
 942public static java.lang.String <B>toTitleCase</B>(java.lang.String&nbsp;str)</PRE>
 943<DL>
 944<DD>Converts the specified string to title case, by capitalizing the
 945 first letter.
 946<P>
 947<DD><DL>
 948<DT><B>Parameters:</B><DD><CODE>str</CODE> - The string<DT><B>Since:</B></DT>
 949  <DD>jEdit 4.0pre1</DD>
 950</DL>
 951</DD>
 952</DL>
 953<HR>
 954
 955<A NAME="indexIgnoringWhitespace(java.lang.String, int, int, java.lang.StringBuffer)"><!-- --></A><H3>
 956indexIgnoringWhitespace</H3>
 957<PRE>
 958public static void <B>indexIgnoringWhitespace</B>(java.lang.String&nbsp;text,
 959                                           int&nbsp;maxLineLength,
 960                                           int&nbsp;tabSize,
 961                                           java.lang.StringBuffer&nbsp;buf)</PRE>
 962<DL>
 963<DD><DL>
 964</DL>
 965</DD>
 966</DL>
 967<!-- ========= END OF CLASS DATA ========= -->
 968<HR>
 969
 970
 971<!-- ======= START OF BOTTOM NAVBAR ====== -->
 972<A NAME="navbar_bottom"><!-- --></A>
 973<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
 974<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 975<TR>
 976<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 977<A NAME="navbar_bottom_firstrow"><!-- --></A>
 978<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 979  <TR ALIGN="center" VALIGN="top">
 980  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 981  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 982  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 983  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/TextUtilities.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 984  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 985  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 986  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 987  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 988  </TR>
 989</TABLE>
 990</TD>
 991<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 992</EM>
 993</TD>
 994</TR>
 995
 996<TR>
 997<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 998&nbsp;<A HREF="../../../../org/gjt/sp/jedit/ServiceManager.ServiceFoldHandlerProvider.html" title="class in org.gjt.sp.jedit"><B>PREV CLASS</B></A>&nbsp;
 999&nbsp;<A HREF="../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit"><B>NEXT CLASS</B></A></FONT></TD>
1000<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1001  <A HREF="../../../../index.html?org/gjt/sp/jedit/TextUtilities.html" target="_top"><B>FRAMES</B></A>  &nbsp;
1002&nbsp;<A HREF="TextUtilities.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
1003&nbsp;
1004<NOSCRIPT>
1005  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
1006</NOSCRIPT>
1007
1008
1009</FONT></TD>
1010</TR>
1011<TR>
1012<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1013  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
1014<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1015DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
1016</TR>
1017</TABLE>
1018<A NAME="skip-navbar_bottom"></A>
1019<!-- ======== END OF BOTTOM NAVBAR ======= -->
1020
1021<HR>
1022
1023</BODY>
1024</HTML>