public class

CharSequences

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.CharSequences

Class Overview

Utility methods for character sequences.

Summary

Public Constructors
CharSequences()
Public Methods
static int indexOf(CharSequence text, char c)
Implementation of indexOf for CharSequence.
static int indexOf2(CharSequence text, char c0, char c1)
Fine the first of two characters and return its position.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CharSequences ()

Public Methods

public static int indexOf (CharSequence text, char c)

Implementation of indexOf for CharSequence. Same behavior as indexOf(int)

public static int indexOf2 (CharSequence text, char c0, char c1)

Fine the first of two characters and return its position.

Returns
  • the position of the first occurrence of c0 or c1 (whichever came first), -1 if not found