<h2>org.das2.jythoncompletion.nbadapt.CharSequenceUtilities</h2><p>Utility methods related to character sequences.</p>
<hr>
<a name="append"></a>
<h2>append</h2>
append( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/StringBuffer.html'>java.lang.StringBuffer</a> sb, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text ) &rarr; void

<p>Append character sequence to the given string buffer.
 <br/>
 This method is no longer needed in JDK 1.5 where the implementation
 does not create an extra java.lang.String instance.</p>

<h3>Parameters</h3>
sb - a StringBuffer
<br>
text - a CharSequence

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=append&unscoped_q=append">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.html#append">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.java">[view source]</a>
<br>
<br>
append( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/StringBuffer.html'>java.lang.StringBuffer</a> sb, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text, int start, int end ) &rarr; void<br>
<hr>
<a name="checkIndexNonNegative"></a>
<h2>checkIndexNonNegative</h2>
checkIndexNonNegative( int index ) &rarr; void

<p>Ensure that the given index is &gt;=0 and lower than the given length.</p>

<h3>Parameters</h3>
index - an int

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=checkIndexNonNegative&unscoped_q=checkIndexNonNegative">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.html#checkIndexNonNegative">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.java">[view source]</a>
<br>
<br>
<hr>
<a name="checkIndexValid"></a>
<h2>checkIndexValid</h2>
checkIndexValid( int index, int length ) &rarr; void

<p>Ensure that the given index is &gt;=0 and lower than the given length.</p>

<h3>Parameters</h3>
index - an int
<br>
length - an int

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=checkIndexValid&unscoped_q=checkIndexValid">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.html#checkIndexValid">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.java">[view source]</a>
<br>
<br>
<hr>
<a name="checkIndexesValid"></a>
<h2>checkIndexesValid</h2>
checkIndexesValid( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text, int start, int end ) &rarr; void

<p>Ensure that the given start and end parameters are valid indices
 of the given text.</p>

<h3>Parameters</h3>
text - a CharSequence
<br>
start - an int
<br>
end - an int

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=checkIndexesValid&unscoped_q=checkIndexesValid">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.html#checkIndexesValid">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.java">[view source]</a>
<br>
<br>
<hr>
<a name="debugChar"></a>
<h2>debugChar</h2>
debugChar( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/StringBuffer.html'>java.lang.StringBuffer</a> sb, char ch ) &rarr; void

<p>Append the character description to the given string buffer
 translating the special characters (and '\') into escape sequences.</p>

<h3>Parameters</h3>
sb - non-null string buffer to append to.
<br>
ch - character to be debugged.

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=debugChar&unscoped_q=debugChar">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.html#debugChar">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.java">[view source]</a>
<br>
<br>
debugChar( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/StringBuilder.html'>java.lang.StringBuilder</a> sb, char ch ) &rarr; void<br>
debugChar( char ch ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a><br>
<hr>
<a name="debugText"></a>
<h2>debugText</h2>
debugText( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/StringBuffer.html'>java.lang.StringBuffer</a> sb, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text ) &rarr; void

<p>Append the text description to the given string buffer
 translating the special characters (and '\') into escape sequences.</p>

<h3>Parameters</h3>
sb - non-null string buffer to append to.
<br>
text - non-null text to be debugged.

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=debugText&unscoped_q=debugText">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.html#debugText">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.java">[view source]</a>
<br>
<br>
debugText( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/StringBuilder.html'>java.lang.StringBuilder</a> sb, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text ) &rarr; void<br>
debugText( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a><br>
<hr>
<a name="endsWith"></a>
<h2>endsWith</h2>
endsWith( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> suffix ) &rarr; boolean

<p>Implementation of {@link String#endsWith(String)} for character sequences.</p>

<h3>Parameters</h3>
text - a CharSequence
<br>
suffix - a CharSequence

<h3>Returns:</h3>
boolean

<br><br>
<a href="https://github.com/autoplot/dev/search?q=endsWith&unscoped_q=endsWith">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.html#endsWith">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.java">[view source]</a>
<br>
<br>
<hr>
<a name="equals"></a>
<h2>equals</h2>
equals( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> o ) &rarr; boolean

<p>Compare character sequence to another object.
 The match is successful if the second object is a character sequence as well
 and both character sequences contain the same characters (or if both objects are null).</p>

<h3>Parameters</h3>
text - character sequence being compared to the given object.
  It may be <code>null</code>.
<br>
o - object to be compared to the character sequence.
  It may be <code>null</code>.

<h3>Returns:</h3>
true if both parameters are null or both are non-null
  and they contain the same text.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=equals&unscoped_q=equals">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.html#equals">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.java">[view source]</a>
<br>
<br>
<hr>
<a name="indexOf"></a>
<h2>indexOf</h2>
indexOf( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text, int ch ) &rarr; int

<p>Implementation of {@link String#indexOf(int)} for character sequences.</p>

<h3>Parameters</h3>
text - a CharSequence
<br>
ch - an int

<h3>Returns:</h3>
int

<br><br>
<a href="https://github.com/autoplot/dev/search?q=indexOf&unscoped_q=indexOf">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.html#indexOf">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.java">[view source]</a>
<br>
<br>
indexOf( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text, int ch, int fromIndex ) &rarr; int<br>
indexOf( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> seq ) &rarr; int<br>
indexOf( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> seq, int fromIndex ) &rarr; int<br>
<hr>
<a name="lastIndexOf"></a>
<h2>lastIndexOf</h2>
lastIndexOf( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> seq ) &rarr; int

<p>Implementation of {@link String#lastIndexOf(String)} for character sequences.</p>

<h3>Parameters</h3>
text - a CharSequence
<br>
seq - a CharSequence

<h3>Returns:</h3>
int

<br><br>
<a href="https://github.com/autoplot/dev/search?q=lastIndexOf&unscoped_q=lastIndexOf">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.html#lastIndexOf">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.java">[view source]</a>
<br>
<br>
lastIndexOf( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> seq, int fromIndex ) &rarr; int<br>
lastIndexOf( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text, int ch ) &rarr; int<br>
lastIndexOf( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text, int ch, int fromIndex ) &rarr; int<br>
<hr>
<a name="startsWith"></a>
<h2>startsWith</h2>
startsWith( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> prefix ) &rarr; boolean

<p>Implementation of {@link String#startsWith(String)} for character sequences.</p>

<h3>Parameters</h3>
text - a CharSequence
<br>
prefix - a CharSequence

<h3>Returns:</h3>
boolean

<br><br>
<a href="https://github.com/autoplot/dev/search?q=startsWith&unscoped_q=startsWith">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.html#startsWith">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.java">[view source]</a>
<br>
<br>
<hr>
<a name="stringLikeHashCode"></a>
<h2>stringLikeHashCode</h2>
stringLikeHashCode( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text ) &rarr; int

<p>Compute {@link String}-like hashcode over given {@link CharSequence}.</p>

<h3>Parameters</h3>
text - character sequence for which the hashcode is being computed.

<h3>Returns:</h3>
hashcode of the given character sequence.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=stringLikeHashCode&unscoped_q=stringLikeHashCode">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.html#stringLikeHashCode">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.java">[view source]</a>
<br>
<br>
<hr>
<a name="textEquals"></a>
<h2>textEquals</h2>
textEquals( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text1, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text2 ) &rarr; boolean

<p>Test whether whether the given character sequences
 represent the same text.
 <br>
 The match is successful if the contained characters
 of the two character sequences are the same.</p>

<h3>Parameters</h3>
text1 - first character sequence being compared.
  It must not be <code>null</code>.
<br>
text2 - second character sequence being compared.
  It must not be <code>null</code>.

<h3>Returns:</h3>
true if both parameters are equal in String-like manner.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=textEquals&unscoped_q=textEquals">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.html#textEquals">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.java">[view source]</a>
<br>
<br>
<hr>
<a name="toString"></a>
<h2>toString</h2>
toString( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a>

<p>Create a string from the given character sequence by first creating
 a <code>StringBuilder</code> and appending the whole character sequence
 to it.
 <br>
 The method does not call <code>toString()</code> on the given character
 sequence.</p>

<h3>Parameters</h3>
text - character sequence for which the <code>String</code> form
  should be created.

<h3>Returns:</h3>
string representation of the character sequence.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=toString&unscoped_q=toString">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.html#toString">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.java">[view source]</a>
<br>
<br>
toString( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text, int start, int end ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a><br>
<hr>
<a name="trim"></a>
<h2>trim</h2>
trim( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a> text ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/CharSequence.html'>java.lang.CharSequence</a>

<p>Implementation of {@link String#trim()} for character sequences.</p>

<h3>Parameters</h3>
text - a CharSequence

<h3>Returns:</h3>
java.lang.CharSequence

<br><br>
<a href="https://github.com/autoplot/dev/search?q=trim&unscoped_q=trim">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.html#trim">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/nbadapt/CharSequenceUtilities.java">[view source]</a>
<br>
<br>