# Class: com.pnfsoftware.jeb.util.format.CharSequences

Utility methods for character sequences.

## Constructor: CharSequences


## Static Method: indexOf
- parameter: `text`, type: `java.lang.CharSequence`
- parameter: `c`, type: `char`
- return type: `int`

Description: Implementation of `indexOf` for CharSequence. Same behavior as [String#indexOf(int)](String#indexOf(int)).
parameter: text: the character sequence
parameter: c: char
return: the index position, or \-1 if not found

## Static Method: indexOf
- parameter: `text`, type: `java.lang.CharSequence`
- parameter: `c`, type: `char`
- parameter: `from`, type: `int`
- return type: `int`

Description: Implementation of `indexOf` for CharSequence. Same behavior as [String#indexOf(int, int)](String#indexOf(int, int))
parameter: text: the character sequence
parameter: c: char
parameter: from: first index to start from
return: the index position, or \-1 if not found

## Static Method: indexOf2
- parameter: `text`, type: `java.lang.CharSequence`
- parameter: `c0`, type: `char`
- parameter: `c1`, type: `char`
- return type: `int`

Description: Find the first one of two characters and return its position.
parameter: text: the character sequence
parameter: c0: first char
parameter: c1: second char
return: the position of the first occurrence of c0 or c1 \(whichever came first\), \-1 if not         found

## Static Method: indexOfn
- parameter: `text`, type: `java.lang.CharSequence`
- parameter: `cs`, type: `char[]`
- return type: `int`

Description: Find the first one of n characters and return its position.
parameter: text: string
parameter: cs: characters
return: the position of the first occurrence of any char \(whichever came first\), \-1 if not         found

## Static Method: isBlank
- parameter: `s`, type: `java.lang.CharSequence`
- return type: `boolean`

Description: Determine if a character sequence is null, empty, or contains WSP chars exclusively.
parameter: s: the character sequence
return: true if the sequence is null or blank

## Static Method: startsWith
- parameter: `text`, type: `java.lang.CharSequence`
- parameter: `prefix`, type: `java.lang.CharSequence`
- return type: `boolean`

Description: Tests if this character sequence starts with the specified prefix.
parameter: text: the main character sequence
parameter: prefix: the prefix token
return: `true` if the string is a prefix of the main character sequence

## Static Method: startsWith
- parameter: `text`, type: `java.lang.CharSequence`
- parameter: `prefix`, type: `java.lang.CharSequence`
- parameter: `trim`, type: `boolean`
- return type: `boolean`

Description: Tests if this character sequence starts with the specified prefix.
parameter: text: the main character sequence
parameter: prefix: the prefix token
parameter: trim: act on trimmed input: ignore leading spaces of \`text\`
return: `true` if the string is a prefix of the main character sequence

## Static Method: toByteArray
- parameter: `chars`, type: `char[]`
- return type: `byte[]`

Description: Convert a char\[\] to a byte\[\] using the system\-default charset.
parameter: chars: char\[\] to be converted
return: the byte\[\]

